diff options
author | Arjun Satarkar <me@arjunsatarkar.net> | 2023-08-03 14:40:14 +0000 |
---|---|---|
committer | Arjun Satarkar <me@arjunsatarkar.net> | 2023-08-03 14:40:14 +0000 |
commit | fc56c91d09da2d9c929be5469fcae73ed2f9d5e3 (patch) | |
tree | cbde9b066731f30e4c1be330d1b6b8a8b18b3e12 | |
parent | 0e120e5221478a3140e09de717ec8e0ff2d5178a (diff) | |
download | tagrss-fc56c91d09da2d9c929be5469fcae73ed2f9d5e3.tar tagrss-fc56c91d09da2d9c929be5469fcae73ed2f9d5e3.tar.gz tagrss-fc56c91d09da2d9c929be5469fcae73ed2f9d5e3.zip |
Improve formatting
-rw-r--r-- | tagrss.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |