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:
parent
fc58eaff92
commit
5506680d62
2 changed files with 2 additions and 11 deletions
|
@ -758,12 +758,7 @@ def blacklist(ipt):
|
||||||
|
|
||||||
blcklst = []
|
blcklst = []
|
||||||
|
|
||||||
s = db.search('paiement=%s' % ann_scol)
|
s = db.search('nom=*')
|
||||||
if periode_transitoire:
|
|
||||||
tmp=db.search('paiement=%s' % (ann_scol-1))
|
|
||||||
s['adherent'].extend(tmp['adherent'])
|
|
||||||
s['club'].extend(tmp['club'])
|
|
||||||
del tmp
|
|
||||||
|
|
||||||
for target in s['adherent'] + s['club']:
|
for target in s['adherent'] + s['club']:
|
||||||
sanctions = target.blacklist_actif()
|
sanctions = target.blacklist_actif()
|
||||||
|
|
|
@ -981,12 +981,8 @@ class CransLdap:
|
||||||
self.__machines = AssociationCrans(conn = self.conn).machines()
|
self.__machines = AssociationCrans(conn = self.conn).machines()
|
||||||
# Machines des adhérents et clubs de l'année en cours
|
# Machines des adhérents et clubs de l'année en cours
|
||||||
#base = self.search('paiement=ok')
|
#base = self.search('paiement=ok')
|
||||||
base = self.search('paiement=%s' % ann_scol)
|
base = self.search('nom=*')
|
||||||
base = base['adherent'] + base['club']
|
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()]
|
base=[a for a in base if a.paiement_ok()]
|
||||||
if graphic: a = anim('\tTri des machines', len(base))
|
if graphic: a = anim('\tTri des machines', len(base))
|
||||||
for adh in base:
|
for adh in base:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue