From 21481ed0d742f17c634922c6d9e57cb64ec9d98e Mon Sep 17 00:00:00 2001 From: Stephane Glondu Date: Thu, 16 Oct 2008 20:15:19 +0200 Subject: [PATCH] [whos] Affichage du solde des clubs darcs-hash:20081016181519-61eff-71d3297a6702d110698c4e42ea98ecf3bbfdd3a9.gz --- gestion/whos.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/gestion/whos.py b/gestion/whos.py index 1a9aa4a7..0993c27f 100755 --- a/gestion/whos.py +++ b/gestion/whos.py @@ -739,6 +739,16 @@ def club_details(club) : f += coul(u'\tAlias : ','gras') + ', '.join(alias) f+= u'\n' + # Solde + solde = club.solde() + if solde: + f += coul(u'Solde : ', 'gras') + if solde < 0: + f+= coul(str(solde).replace('.', ','), 'rouge') + else: + f += str(solde).replace('.', ',') + f += u" Euros\n" + f += _blacklist(club) f += _info(club) f += _hist(club)