Skip to content

Commit

Permalink
add extra logging
Browse files Browse the repository at this point in the history
  • Loading branch information
extreme4all committed Feb 3, 2024
1 parent ddb2d4c commit c543b92
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion api/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,9 @@ async def manual_startup(secret: str):
id, today = 0, date.today()

hiscores = await req.get_prediction_data(id=id, limit=config.BATCH_AMOUNT)
id = hiscores[-1].get("id")
_highscores = hiscores[-1]
logger.info(_highscores)
id = _highscores.get("id")
hiscores = pd.DataFrame(hiscores)

if len(hiscores) == 0:
Expand Down

0 comments on commit c543b92

Please sign in to comment.