Skip to content

Commit

Permalink
cast avg_time to float
Browse files Browse the repository at this point in the history
  • Loading branch information
olegeech-me committed Nov 18, 2024
1 parent de14e24 commit 74448eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bot/statistics.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ async def predict_user_application_time(self, chat_id, period_days=None):
continue # Skip if no average time is available for this type

time_elapsed = (datetime.utcnow() - app['created_at']).total_seconds()
estimated_remaining = avg_time - time_elapsed
estimated_remaining = float(avg_time) - time_elapsed
if estimated_remaining > 0:
predictions.append({
'application_number': generate_oam_full_string(app),
Expand Down

0 comments on commit 74448eb

Please sign in to comment.