Skip to content

Commit 41b9112

Browse files
committed
fix boolean handling (python is the worst language and truthiness is fake)
1 parent 66bceec commit 41b9112

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)