diff --git a/collabs/models.py b/collabs/models.py index 779cb14..6fc0256 100644 --- a/collabs/models.py +++ b/collabs/models.py @@ -66,8 +66,10 @@ class Collabs_hour(models.Model): if total > 0.0: hours = int(total) minutes = (total*60) % 60 + cent_min = float(minutes/60) + hours + print(f"{minutes}/60= {float(minutes/60)} {hours}+{float(minutes/60)}={cent_min}") - ret_string = ("%d:%02d" % (hours, minutes)) + ret_string = ("%d:%02d (%.2f)" % (hours, minutes, cent_min)) #ret_string = str(int(math.floor(total))) + ':' + str(int((total%(math.floor(total)))*60)) + f" ({total})" #ret_string = time.strftime("%H:%M", time.gmtime(total)) else: