Skip to content

Commit 3a30423

Browse files
committed
fix gatekeep active calcuations
1 parent 8da29cf commit 3a30423

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

conditional/util/member.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -162,9 +162,9 @@ def req_cm(uid, members_on_coop=None):
162162

163163

164164
def is_gatekeep_active():
165-
today = datetime.today()
166-
before_evals_one = len(FreshmanAccount.query.filter(FreshmanAccount.eval_date > today).limit(1).all())
167-
before_evals_two = len(FreshmanEvalData.query.filter(FreshmanEvalData.eval_date > today).limit(1).all())
165+
today = datetime.today().date()
166+
before_evals_one = len(FreshmanAccount.query.filter(FreshmanAccount.eval_date >= today).limit(1).all())
167+
before_evals_two = len(FreshmanEvalData.query.filter(FreshmanEvalData.eval_date >= today).limit(1).all())
168168

169169
return not (before_evals_one > 0 or before_evals_two > 0)
170170

0 commit comments

Comments
 (0)