mirror of
https://github.com/FAUSheppy/tmnf-replay-server.git
synced 2025-12-06 15:11:36 +01:00
fix: time display with ms=0
This commit is contained in:
@@ -77,7 +77,9 @@ class ParsedReplay(db.Model):
|
|||||||
t_string = str(t)
|
t_string = str(t)
|
||||||
if t.seconds < 60*60:
|
if t.seconds < 60*60:
|
||||||
t_string = t_string[2:]
|
t_string = t_string[2:]
|
||||||
return t_string[:-4]
|
if t.microseconds != 0:
|
||||||
|
return t_string[:-4]
|
||||||
|
return t_string + ".00"
|
||||||
|
|
||||||
def __repr__(self):
|
def __repr__(self):
|
||||||
return "{time} on {map_n} by {login}".format(
|
return "{time} on {map_n} by {login}".format(
|
||||||
|
|||||||
Reference in New Issue
Block a user