haha yes it works now
This commit is contained in:
+2
-2
@@ -37,7 +37,7 @@ async def _ensure_today_motivation() -> None:
|
||||
await db.close()
|
||||
|
||||
|
||||
async def _ensure_weekly_oracle() -> None:
|
||||
async def _ensure_today_oracle() -> None:
|
||||
config = load_meds_config()
|
||||
db = await get_db()
|
||||
try:
|
||||
@@ -55,7 +55,7 @@ async def lifespan(app: FastAPI):
|
||||
await db.close()
|
||||
start_scheduler()
|
||||
asyncio.create_task(_ensure_today_motivation())
|
||||
asyncio.create_task(_ensure_weekly_oracle())
|
||||
asyncio.create_task(_ensure_today_oracle())
|
||||
yield
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user