From 53fa8caf1e4902382a923b56f089de38e876a7c6 Mon Sep 17 00:00:00 2001 From: mitsuha_s Date: Fri, 8 Jul 2022 21:04:37 +0000 Subject: [PATCH] little code style changes --- database.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/database.py b/database.py index 77a9038..6a77669 100644 --- a/database.py +++ b/database.py @@ -100,7 +100,8 @@ class Database: def find_feed_subscribers(self, feed_id: int) -> list[int]: """Return feed subscribers""" - self.cur.execute('SELECT telegram_id FROM users WHERE id IN (SELECT user_id FROM subscriptions WHERE feed_id = ?)', [feed_id]) + self.cur.execute('SELECT telegram_id FROM users WHERE id IN (SELECT user_id FROM subscriptions WHERE feed_id = ?)', + [feed_id]) subscribers = self.cur.fetchall() return list(map(lambda x: x['telegram_id'], subscribers))