aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArjun Satarkar <me@arjunsatarkar.net>2023-08-03 14:40:14 +0000
committerArjun Satarkar <me@arjunsatarkar.net>2023-08-03 14:40:14 +0000
commitfc56c91d09da2d9c929be5469fcae73ed2f9d5e3 (patch)
treecbde9b066731f30e4c1be330d1b6b8a8b18b3e12
parent0e120e5221478a3140e09de717ec8e0ff2d5178a (diff)
downloadtagrss-fc56c91d09da2d9c929be5469fcae73ed2f9d5e3.tar
tagrss-fc56c91d09da2d9c929be5469fcae73ed2f9d5e3.tar.gz
tagrss-fc56c91d09da2d9c929be5469fcae73ed2f9d5e3.zip
Improve formatting
-rw-r--r--tagrss.py4
1 files 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