Procházet zdrojové kódy

Fix list of tags breakage

Oz Tiram před 8 roky
rodič
revize
e47b72b990
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      pwman/data/nodes.py

+ 1 - 1
pwman/data/nodes.py

@@ -37,7 +37,7 @@ class Node(object):
                           kwargs.get('tags', '')]
 
     def __str__(self):
-        tags =",".join(self.tags) if len(self.tags) > 1 else self.tags[0].decode()  # noqa
+        tags =",".join(t.decode() for t in self.tags) if len(self.tags) > 1 else self.tags[0].decode()  # noqa
         p = "{entry_title:>{width}} {entry:<{width}}\n".format(
             entry_title=pwman.ui.tools.typeset('Username:', Fore.RED),
             width=10, entry=str(self.username))