basic frontend and backend functionality. Need to test with actual livestream

This commit is contained in:
Lucas Jensen
2025-01-12 16:47:04 -08:00
parent 5b73cecee9
commit c482f6758c
12 changed files with 122 additions and 18 deletions

View File

@@ -34,3 +34,15 @@ class GroupQueries(BaseQueries):
cursor.execute(query, (bio,))
conn.commit()
self.close_cursor_and_conn(cursor, conn)
def update_livestream(self, livestream_id: str) -> None:
cursor, conn = self.get_cursor_and_conn()
query = f"""-- sql
UPDATE {self.table} SET livestream_id = %s WHERE id = 1
"""
cursor.execute(query, (livestream_id,))
conn.commit()
self.close_cursor_and_conn(cursor, conn)
def delete_livestream(self) -> None:
self.update_livestream(livestream_id="")