diff --git a/database.py b/database.py index 6a77669..72136f4 100644 --- a/database.py +++ b/database.py @@ -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)) diff --git a/pylama.ini b/pylama.ini index 22b0398..225dd7b 100644 --- a/pylama.ini +++ b/pylama.ini @@ -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