From fc56c91d09da2d9c929be5469fcae73ed2f9d5e3 Mon Sep 17 00:00:00 2001 From: Arjun Satarkar Date: Thu, 3 Aug 2023 20:10:14 +0530 Subject: Improve formatting --- tagrss.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tagrss.py b/tagrss.py index d113a96..a57d880 100644 --- a/tagrss.py +++ b/tagrss.py @@ -115,7 +115,7 @@ class SqliteStorageProvider(StorageProvider): with self.__get_connection() as conn: try: resp = conn.execute( - "INSERT INTO feeds(source, title) VALUES(?,?);", (source, title) + "INSERT INTO feeds(source, title) VALUES(?, ?);", (source, title) ) except sqlite3.IntegrityError: resp = conn.execute( @@ -137,7 +137,7 @@ class SqliteStorageProvider(StorageProvider): "SELECT last_insert_rowid();" ).fetchone()[0] conn.executemany( - "INSERT INTO feed_tags(feed_id, tag) VALUES(?,?);", + "INSERT INTO feed_tags(feed_id, tag) VALUES(?, ?);", ((feed_id, tag) for tag in tags), ) return feed_id -- cgit v1.2.3-57-g22cb