Skip to content

Commit

Permalink
fixed typo
Browse files Browse the repository at this point in the history
  • Loading branch information
nicvagn committed Mar 18, 2024
1 parent 1bba09f commit f1623c8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
9 changes: 4 additions & 5 deletions berserk/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,10 @@ class Game(Model):

class GameState(Model):
createdAt = utils.datetime_from_millis
wtime = utils.timedelta_from_milis
btime = utils.timedelta_from_milis
winc = utils.datetime_from_millis
binc = utils.datetime_from_millis

wtime = utils.timedelta_from_millis
btime = utils.timedelta_from_millis
winc = utils.timedelta_from_millis
binc = utils.timedelta_from_millis

class Tournament(Model):
startsAt = utils.datetime_from_str_or_millis
Expand Down
1 change: 1 addition & 0 deletions berserk/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ def timedelta_from_millis(millis: float) -> timedelta:
for a given milliseconds.
"""
return timedelta(milliseconds=millis)

def datetime_from_seconds(ts: float) -> datetime:
"""Return the datetime for the given seconds since the epoch.
Expand Down

0 comments on commit f1623c8

Please sign in to comment.