Update manager #23

Merged
Miroslavsckaya merged 20 commits from feature_rss_update into master 2022-07-08 19:23:12 +00:00
2 changed files with 3 additions and 3 deletions
Showing only changes of commit 5bb83c2a09 - Show all commits

View file

@ -100,7 +100,7 @@ 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 = ?)',
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))

View file

@ -6,9 +6,9 @@ linters = pyflakes,pylint,pycodestyle
ignore = F0401,C0114,R0903,C0115,C0116,W0511
[pylama:pylint]
max_line_length = 120
max_line_length = 130
score = yes
[pylama:pycodestyle]
# Maximum length of each line
max_line_length = 120
max_line_length = 130