Update main.py
This commit is contained in:
parent
e62ea66bb1
commit
4e59f628e3
@ -97,8 +97,10 @@ async def dropoutSeries():
|
||||
global cached_data
|
||||
if cached_data is None:
|
||||
await dropoutUpdate()
|
||||
try:
|
||||
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):
|
||||
global cached_data
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user