Commit 3419ff29 authored by Gabriel Detraz's avatar Gabriel Detraz

Répare le kikimeter (adaptation pour crans_lc)

parent b5f1fb49
......@@ -101,7 +101,7 @@ def actions_cableurs():
champ = parse_historique(histo_line)[0]
champ_action = parse_historique(histo_line)[1]
date = parse_historique(histo_line)[2]
if (u' inscription' in champ_action or u'Adhesion+' in champ_action) and date > datetime.date(config.ann_scol(), 8, 1):
if (u'Inscription' in champ_action or u'inscription' in champ_action or u'Adhesion+' in champ_action) and date > datetime.date(config.ann_scol(), 8, 1):
HISTORIQUE.append(champ)
for facture in factures():
......@@ -126,7 +126,7 @@ def score_cableurs():
for index in range(0, len(HISTORIQUE)):
histo_uid = HISTORIQUE[index][2]
histo_action = HISTORIQUE[index][3]
if histo_uid == uid and histo_action == u' inscription':
if histo_uid == uid and (u'Inscription' in histo_action or u'inscription' in histo_action):
inscriptions += 1
if histo_uid == uid and (u"debutAdhesion+" in histo_action):
reinscriptions += 1
......
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