diff --git a/lc_ldap.py b/lc_ldap.py index 8da4346..2a1457a 100644 --- a/lc_ldap.py +++ b/lc_ldap.py @@ -505,9 +505,7 @@ class proprio(CransLdapObject): for h in self['historique'][::-1]: x=re.match("(.*),.* : .*(paiement\+%s|inscription).*" % config.ann_scol,h.value) if x != None: - if (time.time()-time.mktime(time.strptime(x.group(1),'%d/%m/%Y %H:%M')))<=config.sursis_carte: - return True - break + return ((time.time()-time.mktime(time.strptime(x.group(1),'%d/%m/%Y %H:%M')))<=config.sursis_carte) return False def paiement_ok(self):