]> rtime.felk.cvut.cz Git - hubacji1/coffee-getter.git/commitdiff
Fix top tea drinkers msg format
authorJiri Vlasak <hubacji1@fel.cvut.cz>
Thu, 2 Jan 2020 10:33:28 +0000 (11:33 +0100)
committerJiri Vlasak <hubacji1@fel.cvut.cz>
Thu, 2 Jan 2020 10:59:43 +0000 (11:59 +0100)
cbgetter.py

index 668620d4eb4684fbcec24704588a0d742961a570..bcdde26fe62a1c1c6b5084f0b3c9f8d286dba3aa 100644 (file)
@@ -137,13 +137,13 @@ class CoffeebotGetter:
             else:
                 self.msg += " who drank "
             if c > 1:
-                self.msg += "`{:.2f}` teas".format(c)
+                self.msg += "`{}` teas".format(c)
             else:
-                self.msg += "`{:.2f}` tea".format(c)
+                self.msg += "`{}` tea".format(c)
             self.msg += "\n"
             i += 1
         self.msg += "\n"
-        self.msg += "Oh, and together we drank *{:.2f}* teas {}".format(
+        self.msg += "Oh, and together we drank *{}* teas {}".format(
             tot,
             self.getSomeSmile()
         )