Skip to content

Commit

Permalink
FIX datetime comparision mistake
Browse files Browse the repository at this point in the history
  • Loading branch information
wabscale committed Feb 14, 2022
1 parent dd3955b commit e7376f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/anubis/github/fix.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ def fix_github_broken_repos():
# Tas not configured
AssignmentRepo.ta_configured == False,
),
AssignmentRepo.created > datetime.now() + timedelta(minutes=1),
AssignmentRepo.created < datetime.now() - timedelta(hours=1),
AssignmentRepo.created <= datetime.now() + timedelta(minutes=1),
AssignmentRepo.created >= datetime.now() - timedelta(hours=1),
).all()

# Iterate over broken repos, fixing as we go
Expand Down

0 comments on commit e7376f0

Please sign in to comment.