Merge pull request #978 from AmatorAVG/master

Fix minutes representation in format_time_spent in models.py
This commit is contained in:
Garret Wassermann 2021-10-20 08:09:02 -04:00 committed by GitHub
commit 3f245871ac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 = ""