From 5bb83c2a09e892c976e1ef8f7d061593a39778e2 Mon Sep 17 00:00:00 2001 From: mitsuha_s Date: Fri, 8 Jul 2022 21:09:10 +0000 Subject: [PATCH] change max_line_length in pylama.ini --- database.py | 2 +- pylama.ini | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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