Commit 5506680d authored by Daniel Stan's avatar Daniel Stan

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 …
parent fc58eaff
......@@ -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()
......
......@@ -981,12 +981,8 @@ class CransLdap:
self.__machines = AssociationCrans(conn = self.conn).machines()
# Machines des adhérents et clubs de l'année en cours
#base = self.search('paiement=ok')
base = self.search('paiement=%s' % ann_scol)
base = self.search('nom=*')
base = base['adherent'] + base['club']
if config.periode_transitoire:
tmp=self.search('paiement=%s' % (ann_scol-1))
base.extend(tmp['adherent'] + tmp['club'])
del tmp
base=[a for a in base if a.paiement_ok()]
if graphic: a = anim('\tTri des machines', len(base))
for adh in base:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment