Skip to content

Commit

Permalink
use timestamp
Browse files Browse the repository at this point in the history
  • Loading branch information
glbert-does committed Nov 2, 2023
1 parent 2ad2491 commit f7c8e7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion heltour/tournament/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ def update_tv_state():
for game in games_starting:
try:
league = game.get_round().season.league
roundstart = (game.get_round().start_date - datetime(1970, 0, 1)).total_seconds()*1000 # round start in miliseconds
roundstart = round(game.get_round().start_date.timestamp()*1000) # round start in miliseconds
for meta in lichessapi.get_latest_game_metas(game.white.lichess_username, since=roundstart,
number=5, opponent=game.black.lichess_username, priority=1,
timeout=300):
Expand Down

0 comments on commit f7c8e7f

Please sign in to comment.