feed generation and accounts WIP

This commit is contained in:
2025-08-01 18:31:55 +03:00
parent 8ba9b7816e
commit f9cfa1648e
9 changed files with 163 additions and 25 deletions

View File

@ -5,7 +5,7 @@ from psycopg2._psycopg import connection
def create_feed(
conn: connection,
groupname: int,
groupname: str,
image_ids: list[int]
):
with conn.cursor() as cur:
@ -30,7 +30,7 @@ def delete_feed(
cur.execute(
"""
delete from picrinth.feeds
where feed_id = %s
where id = %s
""",
(feed_id,),
)
@ -49,7 +49,7 @@ def get_feed(
"""
select groupname
from picrinth.feeds
where feed_id = %s
where id = %s
""",
(feed_id,),
)
@ -70,7 +70,7 @@ def get_groupname_by_feed_id(
"""
select groupname
from picrinth.feeds
where feed_id = %s
where id = %s
""",
(feed_id,),
)