aboutsummaryrefslogtreecommitdiff
path: root/geldschieberbot.py
diff options
context:
space:
mode:
Diffstat (limited to 'geldschieberbot.py')
-rw-r--r--geldschieberbot.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/geldschieberbot.py b/geldschieberbot.py
index f3412c6..b1ee187 100644
--- a/geldschieberbot.py
+++ b/geldschieberbot.py
@@ -27,12 +27,11 @@ def create_summary(user):
if amount == 0:
continue
total -= amount
- summary += "\t" + ("<-" if amount < 0 else "->")
- summary += " " + person + " " + str(abs(amount).round(2)) + "\n"
+ summary += "\t{} {} {:g}\n".format("<-" if amount < 0 else "->", person, abs(amount))
if summary == "":
summary = "\tAll fine :)\n"
else:
- summary += "\tBalance: " + str(total.round(2))
+ summary += "\tBalance: {:g}".format(total)
summary = user + ":\n" + summary
return summary