docstring stuff
This commit is contained in:
17
base.py
17
base.py
@ -3,10 +3,10 @@
|
||||
import importlib
|
||||
import logging
|
||||
import asyncio
|
||||
|
||||
from typing import Any
|
||||
from fastapi import FastAPI
|
||||
from fastapi.middleware.cors import CORSMiddleware
|
||||
from lyric_search_new.sources import redis_cache
|
||||
|
||||
|
||||
logger = logging.getLogger()
|
||||
@ -87,13 +87,14 @@ xc_endpoints = importlib.import_module("endpoints.xc").XC(app, util, constants,
|
||||
# Below: Karma endpoint(s)
|
||||
karma_endpoints = importlib.import_module("endpoints.karma").Karma(app, util, constants, glob_state)
|
||||
|
||||
# @app.on_event("startup")
|
||||
# @repeat_every(seconds=10)
|
||||
# async def cah_tasks() -> None:
|
||||
# return await cah_endpoints.periodicals()
|
||||
|
||||
"""
|
||||
End Actionable Routes
|
||||
"""
|
||||
|
||||
|
||||
"""
|
||||
End Actionable Routes
|
||||
"""
|
||||
Startup
|
||||
"""
|
||||
redis_cache = redis_cache.RedisCache()
|
||||
asyncio.get_event_loop().create_task(
|
||||
redis_cache.create_index())
|
Reference in New Issue
Block a user