We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8da29cf commit 3a30423Copy full SHA for 3a30423
1 file changed
conditional/util/member.py
@@ -162,9 +162,9 @@ def req_cm(uid, members_on_coop=None):
162
163
164
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())
+ today = datetime.today().date()
+ before_evals_one = len(FreshmanAccount.query.filter(FreshmanAccount.eval_date >= today).limit(1).all())
+ before_evals_two = len(FreshmanEvalData.query.filter(FreshmanEvalData.eval_date >= today).limit(1).all())
168
169
return not (before_evals_one > 0 or before_evals_two > 0)
170
0 commit comments