UPDATE: Revamped database class, and implemented some routes in streams.py

This commit is contained in:
2025-01-28 20:36:13 +00:00
parent cbef531b3e
commit 440063bbd0
6 changed files with 130 additions and 85 deletions

View File

@@ -18,7 +18,7 @@ def get_user_id(username: str) -> Optional[int]:
try:
data = cursor.execute(
"SELECT user_id FROM user WHERE username = ?",
"SELECT user_id FROM users WHERE username = ?",
(username,)
).fetchone()
return data[0] if data else None