FEAT: VoDs accessible from browser, named as {vod_id}.mp4

This commit is contained in:
2025-02-12 14:01:38 +00:00
parent 571cb9c0f5
commit 45a586748d
4 changed files with 17 additions and 5 deletions

View File

@@ -54,6 +54,10 @@ class Database:
print(f"Database error: {e}")
raise
def get_last_insert_id(self) -> int:
"""Get the ID of the last inserted row."""
return self.cursor.lastrowid if self.cursor else None
def convert_to_list_dict(self, result):
"""Convert query result to a list of dictionaries."""
if not result: