n'affiche que 10 cableurs par defaut.
darcs-hash:20070929175009-7b604-682a6238481c5b4f9ee95a3385e81c0303fbf5fb.gz
This commit is contained in:
parent
d82b750785
commit
cdf0db6b82
1 changed files with 11 additions and 1 deletions
|
@ -1,7 +1,7 @@
|
|||
#!/usr/bin/python
|
||||
# -*- mode: python; coding: utf-8 -*-
|
||||
#
|
||||
# $Id: stats_cableurs.py,v 1.1 2007-09-06 03:37:16 dimino Exp $
|
||||
# $Id: stats_cableurs.py,v 1.2 2007-09-29 17:50:09 dimino Exp $
|
||||
#
|
||||
# stats_cableurs.py
|
||||
# -----------------
|
||||
|
@ -89,6 +89,16 @@ if __name__ == "__main__":
|
|||
score = calcul_score()
|
||||
classement = classe(score)
|
||||
|
||||
nb_affiche = 10
|
||||
if len(sys.argv) > 1:
|
||||
try:
|
||||
nb_affiche = int(sys.argv[1])
|
||||
except:
|
||||
nb_affiche = 10
|
||||
|
||||
if nb_affiche > 0:
|
||||
classement = classement[0:nb_affiche]
|
||||
|
||||
# On cherche les noms des câbleurs parceque c'est quand même mieux
|
||||
nom_reel = {}
|
||||
for cableur in classement:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue