From cb1faa55f848848bac23aac1ba355f1c226d439a Mon Sep 17 00:00:00 2001 From: Johannes Löthberg Date: Sun, 21 Jun 2015 14:15:29 +0200 Subject: format_rep_changes: Add '+' before number MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Johannes Löthberg --- fingerchange.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fingerchange.py b/fingerchange.py index 53d8495..92629fb 100644 --- a/fingerchange.py +++ b/fingerchange.py @@ -64,11 +64,11 @@ def format_rep_changes(user): changes = slice_dict(user, 'reputation_') msg = '' if changes['change_day'] > 0: - msg += format_field('day', changes['change_day'], indent=3) + msg += format_field('day', '+' + str(changes['change_day']), indent=3) if changes['change_quarter'] > 0: - msg += format_field('quarter', changes['change_quarter'], indent=3) + msg += format_field('quarter', '+' + str(changes['change_quarter']), indent=3) if changes['change_year'] > 0: - msg += format_field('year', changes['change_year'], indent=3) + msg += format_field('year', '+' + str(changes['change_year']), indent=3) if len(msg) > 0: msg = format_field('reputation changes') + msg -- cgit v1.2.3-70-g09d2