Small correction in main.py
This commit is contained in:
1
main.py
1
main.py
@@ -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...")
|
||||||
|
|||||||
Reference in New Issue
Block a user