From 4c5ddb7ba3227ec0b013257f604d011ef68c81ba Mon Sep 17 00:00:00 2001 From: Antoine Durand-Gasselin Date: Wed, 17 Sep 2008 20:31:06 +0200 Subject: [PATCH] correction du script stats_cableurs Il faudra sans doute instaurer une limite sur le script. darcs-hash:20080917183106-bd074-2671c8a2507b026c832544458e2c8998860e0216.gz --- stats_cableurs.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/stats_cableurs.py b/stats_cableurs.py index 39ee7d5d..bd897af3 100755 --- a/stats_cableurs.py +++ b/stats_cableurs.py @@ -8,7 +8,7 @@ # # Copyright (C) 2007 François Bobot , # Jeremie Dimino , -# Michel Blockelet # # 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: