Skip to content

Commit

Permalink
ual_ldap_quota_query: Fix grad overlap with ual-faculty #78
Browse files Browse the repository at this point in the history
  • Loading branch information
astrochun committed Oct 7, 2020
1 parent e656fcd commit 050600f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion requiam/quota.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,10 @@ def ual_ldap_quota_query(ual_class, org_codes=None):
f'({ual_dcc}) )'

if ual_class == 'grad':
ldap_query = f'({ual_grads})'
ldap_query = f'( & ({ual_grads}) ' + \
f'(! ({ual_faculty}) ) ' + \
f'(! ({ual_staff}) ) ' + \
f'(! ({ual_dcc}) ) )'

if ual_class == 'ugrad':
ldap_query = f'({ual_ugrads})'
Expand Down

0 comments on commit 050600f

Please sign in to comment.