We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2feb462 commit 61821cfCopy full SHA for 61821cf
conditional/util/housing.py
@@ -7,6 +7,7 @@
7
from conditional.util.ldap import ldap_get_onfloor_members
8
from conditional.util.ldap import ldap_is_current_student
9
10
+from conditional.models.models import CurrentCoops
11
from conditional.models.models import OnFloorStatusAssigned
12
13
from conditional import db
@@ -29,7 +30,10 @@ def __get_ofm__():
29
30
'time': m.onfloor_granted,
31
'points': ldap_get_housing_points(m.uid)
32
} for m in OnFloorStatusAssigned.query.all()
- if ldap_is_active(m.uid)]
33
+ if ldap_is_active(m.uid)
34
+ or CurrentCoops.query.filter(
35
+ CurrentCoops.uid == m.uid and CurrentCoops.active
36
+ ).first() is not None]
37
38
# sort by housing points then by time in queue
39
ofm.sort(key=lambda m: m['time'])
0 commit comments