Skip to content

Commit

Permalink
round output
Browse files Browse the repository at this point in the history
  • Loading branch information
Lyreplus committed Nov 14, 2024
1 parent f1524f5 commit e52795f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ async def ore(update: Update, context: ContextTypes.DEFAULT_TYPE):

if response.status_code == 200:
data = response.json()
ore = data.get("ore")
ore = round(float(data.get("ore")), 2)
if ore is None:
await update.message.reply_text("Errore, contatta lo staff IT.\n Codice errore: in ore function: ore is None")
return
Expand Down

0 comments on commit e52795f

Please sign in to comment.