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