Small correction in main.py

This commit is contained in:
2025-11-18 00:39:41 +01:00
parent 3f2f0fcb4e
commit 2392d21e17

View File

@@ -24,7 +24,6 @@ BASE_DIR = os.path.dirname(os.path.abspath(__file__))
STATIC_DIR = os.path.join(BASE_DIR, "static") STATIC_DIR = os.path.join(BASE_DIR, "static")
TEMPLATES_DIR = os.path.join(BASE_DIR, "templates") TEMPLATES_DIR = os.path.join(BASE_DIR, "templates")
@asynccontextmanager
async def background_listener_startup(app: FastAPI): async def background_listener_startup(app: FastAPI):
"""A non-blocking task to start listeners after the app has started.""" """A non-blocking task to start listeners after the app has started."""
print("Background task: Starting listeners for all users...") print("Background task: Starting listeners for all users...")