Testing in progress ;)
This commit is contained in:
+2
-2
@@ -74,7 +74,7 @@ async def get_roast_of_the_day(db: aiosqlite.Connection, tz: ZoneInfo) -> dict[s
|
||||
source = "fallback"
|
||||
else:
|
||||
source = "ai"
|
||||
await _set_cache(db, key, text)
|
||||
await _set_cache(db, key, text)
|
||||
|
||||
return {"text": text, "source": source, "day": day}
|
||||
|
||||
@@ -98,6 +98,6 @@ async def get_oracle(db: aiosqlite.Connection, tz: ZoneInfo) -> dict[str, Any]:
|
||||
source = "fallback"
|
||||
else:
|
||||
source = "ai"
|
||||
await _set_cache(db, key, text)
|
||||
await _set_cache(db, key, text)
|
||||
|
||||
return {"text": text, "source": source, "week": week}
|
||||
|
||||
Reference in New Issue
Block a user