Fixed flood nice message
authorJean-Michel Nirgal Vourgère <jmv@nirgal.com>
Sun, 27 May 2012 10:40:16 +0000 (10:40 +0000)
committerJean-Michel Nirgal Vourgère <jmv@nirgal.com>
Sun, 27 May 2012 10:40:16 +0000 (10:40 +0000)
members.py

index 63dfc90252b2726a284799af418a1092fb647dbc..d3d3aa63261dd6ed774abd06e9f56a73c41b6428 100755 (executable)
@@ -246,7 +246,7 @@ def field_compare(oldmembers, newmembers, csvfile):
                 continue # not the good one
             percent = float(oldfield[nick2] - newfield[nick2]) / oldfield[nick2] * 100.
             txtchanges.append('%s a pris %s cm² à %s (%.2f%%)' % (nick, number_format(delta), nick2, percent))
-            txtchanges2.append('FLOOD,{nick1},{grade1},{oldfield1},{newfield1},{nick2},{grade2},{oldfield2},{newfield2},{deltafield},{percent},{nick1} a pris {deltafield} cm² à {nick2} ({percent:.2f}%)'.format(
+            txtchanges2.append('FLOOD,{nick1},{grade1},{oldfield1},{newfield1},{nick2},{grade2},{oldfield2},{newfield2},{deltafield},{percent},{nick1} a pris {nicedeltafield} cm² à {nick2} ({percent:.2f}%)'.format(
                 nick1=nick,
                 grade1=newmembers[nick].get('grade', ''),
                 oldfield1=oldfield[nick],