mirror of
https://github.com/django-helpdesk/django-helpdesk.git
synced 2024-12-13 18:31:10 +01:00
Update models.py
fix minutes representation in format_time_spent
This commit is contained in:
parent
7a4046b237
commit
5538985fe1
@ -39,7 +39,7 @@ def format_time_spent(time_spent):
|
||||
if time_spent:
|
||||
time_spent = "{0:02d}h:{1:02d}m".format(
|
||||
time_spent.seconds // 3600,
|
||||
time_spent.seconds // 60
|
||||
time_spent.seconds % 3600 // 60
|
||||
)
|
||||
else:
|
||||
time_spent = ""
|
||||
|
Loading…
Reference in New Issue
Block a user