Skip to content

Commit

Permalink
fix bug in _check_feed_task()
Browse files Browse the repository at this point in the history
  • Loading branch information
adbenitez committed Mar 22, 2024
1 parent a8c63f2 commit be94a5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion feedsbot/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def _check_feed_task(bot: Bot, feed: Feed):
else:
with session_scope() as session:
stmt = select(Fchat.accid, Fchat.gid).where(Fchat.feed_url == feed.url)
fchats = session.execute(stmt).scalars().all()
fchats = session.execute(stmt).all()
session.execute(delete(Feed).where(Feed.url == feed.url))
reply = {
"text": f"❌ Due to errors, this chat was unsubscribed from feed: {feed.url}"
Expand Down

0 comments on commit be94a5e

Please sign in to comment.