implemented most of the pixiv scraper

This commit is contained in:
2025-08-06 19:00:19 +03:00
parent 3a25f4fdd4
commit f9277ad570
19 changed files with 277 additions and 104 deletions

View File

@ -13,13 +13,16 @@ def create_feed(
"""
insert into picrinth.feeds
(groupname, image_ids, created_at)
values (%s, %s, %s, %s, now())
values (%s, %s, now())
returning id
""",
(groupname, image_ids),
)
result = cur.fetchone()
conn.commit()
return cur.rowcount > 0
if result is None:
return None
return result[0]
def delete_feed(