Pārlūkot izejas kodu

Fix NewNode initialisation in the win ui

oz123 10 gadi atpakaļ
vecāks
revīzija
654360e115
1 mainītis faili ar 5 papildinājumiem un 1 dzēšanām
  1. 5 1
      pwman/ui/win.py

+ 5 - 1
pwman/ui/win.py

@@ -75,7 +75,11 @@ class PwmanCliWinNew(PwmanCliNew):
                                              special_signs=special_chars)
             url = self.get_url()
             notes = self.get_notes()
-            node = NewNode(username, password, url, notes)
+            node = NewNode()
+            node.username = username
+            node.password = password
+            node.url = url
+            node.notes = notes
             tags = self.get_tags()
             node.tags = tags
             self._db.addnodes([node])