diff options
author | Johannes Löthberg <johannes@kyriasis.com> | 2015-06-21 14:15:29 +0200 |
---|---|---|
committer | Johannes Löthberg <johannes@kyriasis.com> | 2015-06-21 14:15:29 +0200 |
commit | cb1faa55f848848bac23aac1ba355f1c226d439a (patch) | |
tree | ac72473a558ea1897e0da4f0ee3fab41a8ffd5c6 | |
parent | 9d5fd0895e710f2ea7d4c2e7e2faeed65d223203 (diff) | |
download | fingerchange-cb1faa55f848848bac23aac1ba355f1c226d439a.tar.xz |
format_rep_changes: Add '+' before number
Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
-rw-r--r-- | fingerchange.py | 6 |
1 files 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 |