try adding upload with token + rename "subreddit" row to "source"

This commit is contained in:
2026-05-16 20:37:46 +02:00
parent 15be556741
commit bc2652cc0e
4 changed files with 43 additions and 7 deletions
+1 -1
View File
@@ -73,7 +73,7 @@ async def save_picture(pool):
async with pool.acquire() as conn:
async with conn.cursor() as cursor:
await cursor.execute(
"INSERT INTO images (url, filename, subreddit) VALUES (%s, %s, %s)",
"INSERT INTO images (url, filename, source) VALUES (%s, %s, %s)",
(url, generate_filename, subreddit)
)
await conn.commit()