fix: time display with ms=0

This commit is contained in:
2023-06-16 14:46:02 +02:00
parent 08fb0e7089
commit b4f12985d5

View File

@@ -77,7 +77,9 @@ class ParsedReplay(db.Model):
t_string = str(t)
if t.seconds < 60*60:
t_string = t_string[2:]
return t_string[:-4]
if t.microseconds != 0:
return t_string[:-4]
return t_string + ".00"
def __repr__(self):
return "{time} on {map_n} by {login}".format(