docstring stuff

This commit is contained in:
2025-01-19 07:01:07 -05:00
parent 151643c5dc
commit be0ef08f3d
9 changed files with 118 additions and 52 deletions

17
base.py
View File

@ -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())