Skip to content

Commit eb74763

Browse files
authored
Merge pull request #422 from Qelxiros/develop
fix gatekeep logic
2 parents 66bceec + 41b9112 commit eb74763

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

conditional/util/member.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ def gatekeep_status(username):
201201
)
202202
.filter(
203203
MemberCommitteeAttendance.uid == username,
204-
CommitteeMeeting.approved is True,
204+
bool(CommitteeMeeting.approved),
205205
CommitteeMeeting.timestamp >= semester_start,
206206
)
207207
.count()
@@ -214,7 +214,7 @@ def gatekeep_status(username):
214214
)
215215
.filter(
216216
MemberSeminarAttendance.uid == username,
217-
TechnicalSeminar.approved is True,
217+
bool(TechnicalSeminar.approved),
218218
TechnicalSeminar.timestamp >= semester_start,
219219
)
220220
.count()

0 commit comments

Comments
 (0)