UPDATE: final cleanup of backend code

This commit is contained in:
white
2025-03-02 16:01:22 +00:00
parent fc934a57ff
commit 7d08432a60
3 changed files with 3 additions and 2 deletions

View File

@@ -4,6 +4,7 @@ from typing import Optional
from dotenv import load_dotenv from dotenv import load_dotenv
from os import getenv from os import getenv
from werkzeug.security import generate_password_hash from werkzeug.security import generate_password_hash
load_dotenv() load_dotenv()
serializer = URLSafeTimedSerializer(getenv("AUTH_SECRET_KEY")) serializer = URLSafeTimedSerializer(getenv("AUTH_SECRET_KEY"))

View File

@@ -1,5 +1,6 @@
"""Description: This file contains the PathManager class which is responsible for managing the paths of the stream data."""
import os import os
# Description: This file contains the PathManager class which is responsible for managing the paths of the stream data.
class PathManager(): class PathManager():
def __init__(self) -> None: def __init__(self) -> None:

View File

@@ -1,7 +1,6 @@
from database.database import Database from database.database import Database
from typing import Optional, List from typing import Optional, List
def get_user_preferred_category(user_id: int) -> Optional[int]: def get_user_preferred_category(user_id: int) -> Optional[int]:
""" """
Queries user_preferences database to find users favourite streaming category and returns the category Queries user_preferences database to find users favourite streaming category and returns the category