diff --git a/gestion/ipt.py b/gestion/ipt.py index 764a37f1..128cf470 100644 --- a/gestion/ipt.py +++ b/gestion/ipt.py @@ -749,9 +749,9 @@ def blacklist(ipt): s = db.search('paiement=%s' % ann_scol) if periode_transitoire: - tmp=db.search('paiement=%s' % ann_scol-1) - s['adherent'].entend(tmp['adherent']) - s['club'].entend(tmp['club']) + 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']: @@ -761,7 +761,7 @@ def blacklist(ipt): s = db.search('mblacklist=*&paiement=%s' % ann_scol) if periode_transitoire: - s['machine'].entend(db.s('mblacklist=*&paiement=%s' % ann_scol-1)['machine']) + s['machine'].extend(db.search('mblacklist=*&paiement=%s' % (ann_scol-1))['machine']) for target in s['machine']: sanctions = target.blacklist_actif() diff --git a/gestion/ldap_crans.py b/gestion/ldap_crans.py index 97d41cce..958eb850 100755 --- a/gestion/ldap_crans.py +++ b/gestion/ldap_crans.py @@ -944,8 +944,8 @@ class CransLdap: base = self.search('paiement=%s' % ann_scol) base = base['adherent'] + base['club'] if config.periode_transitoire: - tmp=self.search('paiement=%s' % ann_scol-1) - base.entend(tmp['adherent'] + tmp['club']) + 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))