Update main.py

This commit is contained in:
TylerCG 2025-05-12 18:05:38 -04:00
parent e62ea66bb1
commit 4e59f628e3

View File

@ -97,8 +97,10 @@ async def dropoutSeries():
global cached_data global cached_data
if cached_data is None: if cached_data is None:
await dropoutUpdate() await dropoutUpdate()
try:
return JSONResponse(content=cached_data) return JSONResponse(content=cached_data)
return JSONResponse(content={"error": "File not found"}, status_code=404) except:
return JSONResponse(content={"error": "File not found"}, status_code=404)
async def get_show_data(show: str): async def get_show_data(show: str):
global cached_data global cached_data