fw6: kludge post-adhésion glissante

On peut probablement faire mieux pour ne filtrer que les gens à jour de cotiz
mais j'ai la flemme …
This commit is contained in:
Daniel STAN 2014-09-24 23:55:39 +02:00
parent fc58eaff92
commit 5506680d62
2 changed files with 2 additions and 11 deletions

View file

@ -758,12 +758,7 @@ def blacklist(ipt):
blcklst = []
s = db.search('paiement=%s' % ann_scol)
if periode_transitoire:
tmp=db.search('paiement=%s' % (ann_scol-1))
s['adherent'].extend(tmp['adherent'])
s['club'].extend(tmp['club'])
del tmp
s = db.search('nom=*')
for target in s['adherent'] + s['club']:
sanctions = target.blacklist_actif()