[objects] Erreur qui s'est glissée là lors du passage de lc_ldap à objects
This commit is contained in:
parent
e1a3a2f188
commit
2877b9daaf
1 changed files with 1 additions and 1 deletions
|
@ -452,7 +452,7 @@ class proprio(CransLdapObject):
|
||||||
|
|
||||||
def sursis_carte(self):
|
def sursis_carte(self):
|
||||||
for h in self['historique'][::-1]:
|
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:
|
if x != None:
|
||||||
return ((time.time()-time.mktime(time.strptime(x.group(1),'%d/%m/%Y %H:%M'))) <= config.sursis_carte)
|
return ((time.time()-time.mktime(time.strptime(x.group(1),'%d/%m/%Y %H:%M'))) <= config.sursis_carte)
|
||||||
return False
|
return False
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue