瀏覽代碼

Fix convertdb to parse db version correctly

oz123 11 年之前
父節點
當前提交
1d4a99d5d7
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      pwman/data/convertdb.py

+ 2 - 1
pwman/data/convertdb.py

@@ -297,7 +297,7 @@ class PwmanConvertDB(object):
         print "Will convert the following Database: %s " % self.dbname
         if os.path.exists(config.get_value("Database", "filename")):
             dbver = pwman.data.factory.check_db_version(self.dbtype)
-            self.dbver = float(dbver.strip("\'"))
+            self.dbver = float(dbver)
         backup = '.backup-%s'.join(os.path.splitext(self.dbname)) % \
             time.strftime(
                 '%Y-%m-%d-%H:%M')
@@ -332,6 +332,7 @@ class PwmanConvertDB(object):
         for node in self.oldnodes:
             username = node.get_username()
             password = node.get_password()
+
             url = node.get_url()
             notes = node.get_notes()
             tags = node.get_tags()