FIX: fixed issues loading content on new accounts

This commit is contained in:
white
2025-02-17 12:18:23 +00:00
parent ecb26223df
commit 3528b6517a
4 changed files with 20 additions and 6 deletions

View File

@@ -72,7 +72,7 @@ def get_latest_vod(user_id: int):
Returns data of the most recent stream by a streamer
"""
with Database() as db:
latest_vod = db.fetchone("""SELECT * FROM vods WHERE user_id = ? ORDER BY vod_id DESC LIMIT 1;""", (user_id,))
latest_vod = db.fetchone("""SELECT * FROM vods WHERE user_id = ? ORDER BY vod_id DESC;""", (user_id,))
return latest_vod
def get_user_vods(user_id: int):