little code style changes
This commit is contained in:
parent
25af6c2176
commit
53fa8caf1e
|
@ -100,7 +100,8 @@ class Database:
|
||||||
|
|
||||||
def find_feed_subscribers(self, feed_id: int) -> list[int]:
|
def find_feed_subscribers(self, feed_id: int) -> list[int]:
|
||||||
"""Return feed subscribers"""
|
"""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()
|
subscribers = self.cur.fetchall()
|
||||||
return list(map(lambda x: x['telegram_id'], subscribers))
|
return list(map(lambda x: x['telegram_id'], subscribers))
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue