From 14588d148b4c6ae09ef6b84ae90364244575105a Mon Sep 17 00:00:00 2001 From: Vincent Le Gallic Date: Fri, 31 Jan 2014 16:25:38 +0100 Subject: [PATCH] =?utf8?q?[bde/virements]=20=C3=A9galit=C3=A9=20de=20flott?= =?utf8?q?ant=20:=20you're=20screwed?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- bde/virements.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bde/virements.py b/bde/virements.py index f14f08b..030fca6 100755 --- a/bde/virements.py +++ b/bde/virements.py @@ -129,7 +129,7 @@ def virements(): print "Total : %s" % total print "\nPayeurs :\n" + " ".join(["%s (%s)" % (i[1]["pseudo"], i[0]) for i in destinataires]) print "Total : %s" % total_pay + "\n" - if total != total_pay: + if abs(total-total_pay) >= 0.01: print "Les totaux des participations et des paiements ne concordent pas !\nAbort." exit(1) -- 2.39.2