Commit 851176a2 authored by Pierre-Elliott Bécue's avatar Pierre-Elliott Bécue

[stats_cableurs2] Moins de lowerCamelCase = plus_d_emmerdes.

parent e81d8ba4
......@@ -34,8 +34,9 @@ import gestion.affichage as affichage
from config import ann_scol
### Appels à LDAP et tri initial sur l'année en cours
db = shortcuts.lc_ldap_readonly()
adherents = db.search(u'(&(debutAdhesion>=%s)(aid=*))' % (crans_utils.toGeneralizedTimeFormat(config.debut_periode_transitoire)), sizelimit=2000)
adherents = db.search(u'(&(debutAdhesion>=%s)(aid=*))' % (crans_utils.to_generalized_time_format(config.debut_periode_transitoire)), sizelimit=2000)
cableurs = db.search(u'(|(droits=cableur)(droits=nounou))')
cableurs.remove(cableurs[63])
scores = []
historique = []
encoding = sys.stdout.encoding or "UTF-8"
......@@ -77,7 +78,7 @@ def score_cableurs():
histo_action = historique[l][3]
if histo_uid == uid and histo_action == u' inscription':
inscriptions = inscriptions+1
if histo_uid == uid and (u"debutAdhesion+" in histo_action):
if histo_uid == uid and (u"debutAdhesion+" in histo_action):
reinscriptions = reinscriptions+1
score = 2*inscriptions + reinscriptions
scores.append(["%s %s" % (prenom, nom), score, inscriptions, reinscriptions])
......
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