Skip to content

Commit

Permalink
Merge pull request #6 from jspayne/patch-1
Browse files Browse the repository at this point in the history
Update __init__.py to fix time check for post game thread
  • Loading branch information
jspayne authored Jun 23, 2023
2 parents 5be8d68 + 89a4461 commit 4973a2d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bots/lemmy_mlb_game_threads/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2481,9 +2481,9 @@ def postgame_thread_update_loop(self, pk):
break
elif update_postgame_thread_until == "An hour after thread is posted":
if (
datetime.now() - datetime.strptime(self.activeGames[pk]["postGameThread"]["post"]["published"],
datetime.utcnow() - datetime.strptime(self.activeGames[pk]["postGameThread"]["post"]["published"],
'%Y-%m-%dT%H:%M:%S.%f')
<= timedelta(hours=1)
>= timedelta(hours=1)
):
# Post game thread was posted more than an hour ago
self.log.info(
Expand Down

0 comments on commit 4973a2d

Please sign in to comment.