diff options
author | mkaay <mkaay@mkaay.de> | 2011-02-04 19:30:04 +0100 |
---|---|---|
committer | mkaay <mkaay@mkaay.de> | 2011-02-04 19:30:04 +0100 |
commit | e9468564cd6e5e65cd1e5e47774679fd23862006 (patch) | |
tree | 3d1f4d6611f41bddd03bdc9761ae6851a1730ada | |
parent | runnig gag: forget adding files to your commit (diff) | |
download | pyload-e9468564cd6e5e65cd1e5e47774679fd23862006.tar.xz |
fixes
-rw-r--r-- | module/DatabaseBackend.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/module/DatabaseBackend.py b/module/DatabaseBackend.py index c93479565..f8e90b97a 100644 --- a/module/DatabaseBackend.py +++ b/module/DatabaseBackend.py @@ -163,14 +163,14 @@ class DatabaseBackend(Thread): try: getattr(self, "_convertV%i" % v)() except: - self.manager.core.log.error(_("Filedatabase could NOT be converted.")) + self.core.log.error(_("Filedatabase could NOT be converted.")) #--convert scripts start def _convertV2(self): self.c.execute('CREATE TABLE IF NOT EXISTS "storage" ("id" INTEGER PRIMARY KEY AUTOINCREMENT, "identifier" TEXT NOT NULL, "key" TEXT NOT NULL, "value" TEXT DEFAULT "")') self.manager.core.log.info(_("Database was converted from v2 to v3.")) - self._convertV3(self) + self._convertV3() def _convertV3(self): self.c.execute('CREATE TABLE IF NOT EXISTS "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT, "name" TEXT NOT NULL, "email" TEXT DEFAULT "" NOT NULL, "password" TEXT NOT NULL, "role" INTEGER DEFAULT 0 NOT NULL, "permission" INTEGER DEFAULT 0 NOT NULL, "template" TEXT DEFAULT "default" NOT NULL)') |