correction du script stats_cableurs
Il faudra sans doute instaurer une limite sur le script. darcs-hash:20080917183106-bd074-2671c8a2507b026c832544458e2c8998860e0216.gz
This commit is contained in:
parent
bac0e42ab4
commit
4c5ddb7ba3
1 changed files with 5 additions and 5 deletions
|
@ -8,7 +8,7 @@
|
|||
#
|
||||
# Copyright (C) 2007 François Bobot <bobot@crans.org>,
|
||||
# Jeremie Dimino <jeremie@dimino.org>,
|
||||
# Michel Blockelet <blockelet@crans.org
|
||||
# Michel Blockelet <blockelet@crans.org>
|
||||
#
|
||||
# This file is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
|
@ -63,7 +63,7 @@ def calcul_score(mois):
|
|||
u""" Calcul le score de tous les cableurs ayant inscrit ou
|
||||
réinscrit quelqu'un pour l'année en cours. """
|
||||
|
||||
liste = db.search("paiement=2007")['adherent']
|
||||
liste = db.search("paiement=2008")['adherent']
|
||||
|
||||
score = {}
|
||||
for adherent in liste:
|
||||
|
@ -90,9 +90,9 @@ if __name__ == "__main__":
|
|||
nb_affiche = 10
|
||||
mois = [8,9,10]
|
||||
if len(sys.argv) > 1:
|
||||
if sys.argv[1] == '-e':
|
||||
mois = [8,9,10,11]
|
||||
if len(sys.argv) > 2:
|
||||
if sys.argv[1] == '-e':
|
||||
mois = [8,9,10,11]
|
||||
if len(sys.argv) > 2:
|
||||
try:
|
||||
nb_affiche = int(sys.argv[2])
|
||||
except:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue