Utilise les nouvelles variables de config et fonctions de crans_utils
This commit is contained in:
parent
6ae6e54101
commit
955dd379c7
3 changed files with 13 additions and 13 deletions
|
@ -50,7 +50,7 @@ def adherents(regen=False):
|
|||
adhérents"""
|
||||
|
||||
if regen or not adherents.data:
|
||||
adherents.data = DB.search(u'(&(debutAdhesion>=%s)(aid=*))' % (crans_utils.to_generalized_time_format(config.debut_periode_transitoire)), sizelimit=2000)
|
||||
adherents.data = DB.search(u'(&(debutAdhesion>=%s)(aid=*))' % (config.gtf_debut_periode_transitoire,), sizelimit=2000)
|
||||
return list(adherents.data)
|
||||
|
||||
@static_var(("data", []))
|
||||
|
@ -59,7 +59,7 @@ def factures(regen=False):
|
|||
|
||||
if regen or not factures.data:
|
||||
factures.data = DB.search(u'(&(|(debutAdhesion>=%(now)s)(debutConnexion>=%(now)s))(fid=*))' % {
|
||||
'now': crans_utils.to_generalized_time_format(config.debut_periode_transitoire),
|
||||
'now': config.gtf_debut_periode_transitoire,
|
||||
}, sizelimit=0)
|
||||
return list(factures.data)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue