[stats_cableurs2] Moins de lowerCamelCase = plus_d_emmerdes.
This commit is contained in:
parent
e81d8ba45a
commit
851176a282
1 changed files with 3 additions and 2 deletions
|
@ -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])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue