Update models.py

fix minutes representation in format_time_spent
This commit is contained in:
AmatorAVG 2021-10-20 14:18:38 +07:00 committed by GitHub
parent 7a4046b237
commit 5538985fe1
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 = ""