X-Git-Url: http://gitweb.pimeys.fr/?a=blobdiff_plain;f=bde%2Fvirements.py;h=030fca6bba862b21147c27be7503141cd6350df1;hb=14588d148b4c6ae09ef6b84ae90364244575105a;hp=f14f08bf7391ada501906da7dcbb1712ad90f31d;hpb=ec403e1b12920634bae283393704e4df9832bbef;p=scripts-20-100.git 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)