Skip to content

Commit

Permalink
Fix crash on total time if all volunteers have zero time
Browse files Browse the repository at this point in the history
  • Loading branch information
mhagander committed Nov 5, 2024
1 parent d7f9575 commit d806807
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion postgresqleu/confreg/volsched.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def _get_volunteer_stats(conference):
'name': r.fullname,
'count': r.num_assignments,
'time': str(r.total_time or '0:00:00'),
'seconds': int(r.total_time.total_seconds()),
'seconds': int(r.total_time.total_seconds()) if r.total_time else 0,
} for r in stats]


Expand Down

0 comments on commit d806807

Please sign in to comment.