feed generation and accounts WIP
This commit is contained in:
@ -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,),
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user