From: Vincent Le Gallic Date: Wed, 10 Feb 2016 04:27:55 +0000 (+0100) Subject: [bde/stats/depenses] Inversion gain/dépenses X-Git-Url: http://gitweb.pimeys.fr/?a=commitdiff_plain;h=436793606a9571b499031a313b65b5997cbe0e32;p=scripts-20-100.git [bde/stats/depenses] Inversion gain/dépenses Il me semblait pourtant avoir déjà corrigé ce truc… --- diff --git a/bde/stats/depenses.py b/bde/stats/depenses.py index fff63d3..a5b02c4 100755 --- a/bde/stats/depenses.py +++ b/bde/stats/depenses.py @@ -68,7 +68,7 @@ def get_depenses(idbde, bymonth=False): def display_depenses(idbde, all, tot, bymonth=False): """Pretty-printing des résultats.""" month = "\tmois" if bymonth else "" - print "Compte %s:\nannee%s\tgains\t\tdépenses" % (idbde, month) + print "Compte %s:\nannee%s\tdépenses\tgains" % (idbde, month) for li in all: if bymonth: li = [int(li[0]), int(li[1]), li[2], li[3]] @@ -76,7 +76,7 @@ def display_depenses(idbde, all, tot, bymonth=False): else: li = [int(li[0]), li[1], li[2]] print "%s\t%s\t\t%s" % tuple(li) - print "\nTotal :\n\tgains\t\tdépenses" + print "\nTotal :\n\tdépenses\tgains" print "\t%s\t\t%s\n" % tuple(tot) if __name__ == "__main__":