Skip to content

Commit 33169aa

Browse files
authored
Use SQLAlchemy Filter
1 parent 4bb77f7 commit 33169aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

conditional/util/member.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,5 +138,5 @@ def get_hm(member, only_absent=False):
138138
HouseMeeting.date > start_of_year(),
139139
MemberHouseMeetingAttendance.uid == member.uid)
140140
if only_absent:
141-
h_meetings = [hm for hm in h_meetings if hm.attendance_status == "Absent"]
141+
h_meetings = h_meetings.filter(MemberHouseMeetingAttendance.attendance_status == "Absent")
142142
return h_meetings

0 commit comments

Comments
 (0)