]> git.armaanb.net Git - lightcards.git/commitdiff
Remove unnecessary plus signs to concat strings
authorArmaan Bhojwani <me@armaanb.net>
Wed, 10 Feb 2021 01:42:45 +0000 (20:42 -0500)
committerArmaan Bhojwani <me@armaanb.net>
Wed, 10 Feb 2021 01:42:45 +0000 (20:42 -0500)
lightcards/display.py

index 73b2a396e672871fc2aeeeabe600072ace6869d7..a37f28c3a93840c68a06828234135e1b5fd55222 100644 (file)
@@ -82,11 +82,11 @@ class Display:
         bar_middle = self.current_card().printStar()
         bar_end = (
             f"] [{len(self.ntotal())}/{str(len(self.stack))} starred] "
-            f"[{percent}% ("
-            + str(self.obj.getIdx() + 1).zfill(len(str(len(self.stack))))
-            f"/{str(len(self.stack))})] ["
-            f"{self.headers[self.current_card().getSide()]} ("
-            + f"{str(int(self.current_card().getSide()) + 1)})] "
+            f"[{percent}% ("
+            f"{str(self.obj.getIdx()).zfill(len(str(len(self.stack))))}"
+            f"/{str(len(self.stack))})] ["
+            f"{self.headers[self.current_card().getSide()]} ("
+            f"{str(int(self.current_card().getSide()) + 1)})]"
         )
 
         # Put it all togethor