fix: show tm2020 milliseconds

This commit is contained in:
2024-01-28 08:07:01 +01:00
parent 710d519344
commit 42f292fb7a

View File

@@ -183,7 +183,10 @@ class ParsedReplay(db.Model):
if t.seconds < 60*60: if t.seconds < 60*60:
t_string = t_string[2:] t_string = t_string[2:]
if t.microseconds != 0: if t.microseconds != 0:
if self.game == "tmnf":
return t_string[:-4] return t_string[:-4]
else:
return t_string[:-3]
return t_string + ".00" return t_string + ".00"
def __repr__(self): def __repr__(self):