Update profile mappings for faculty and grads
authorDan Scott <dscott@laurentian.ca>
Thu, 12 Jan 2017 21:22:11 +0000 (16:22 -0500)
committerDan Scott <dscott@laurentian.ca>
Thu, 12 Jan 2017 21:29:05 +0000 (16:29 -0500)
Signed-off-by: Dan Scott <dscott@laurentian.ca>
tools/patron-load/ldap_osrf_sync

index cf104da..929732c 100755 (executable)
@@ -138,7 +138,7 @@ class User:
         if exp_att:
             expiry_date = "%s-%s-%s" % (exp_att[:4], exp_att[4:6], exp_att[6:8])
         # Faculty and staff get a long time
-        elif self.profile == 11 or self.profile == 14:
+        elif self.profile == 111 or self.profile == 115:
             expiry_date = '%d-09-30' % (datetime.date.today().year + 8)
         # Expire the visiting students Sept. 30th
         elif self.affiliation == 'visitor':