diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2012-10-05 19:01:15 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2012-10-05 19:01:15 +0200 |
commit | 2c684d72fd8234940a921d4f2a5db28dbadaafa1 (patch) | |
tree | fd35e0806b588b1d4489b5e102c99a50f85bb8c8 /module/database | |
parent | fixed some things, so downloads works again (diff) | |
download | pyload-2c684d72fd8234940a921d4f2a5db28dbadaafa1.tar.xz |
updated lodash, tried to style package list
Diffstat (limited to 'module/database')
-rw-r--r-- | module/database/DatabaseBackend.py | 1 | ||||
-rw-r--r-- | module/database/FileDatabase.py | 5 |
2 files changed, 4 insertions, 2 deletions
diff --git a/module/database/DatabaseBackend.py b/module/database/DatabaseBackend.py index 58e1e74d8..b22f8ffc5 100644 --- a/module/database/DatabaseBackend.py +++ b/module/database/DatabaseBackend.py @@ -244,6 +244,7 @@ class DatabaseBackend(Thread): '"password" TEXT DEFAULT "" NOT NULL, ' '"added" INTEGER DEFAULT 0 NOT NULL,' # set by trigger '"status" INTEGER DEFAULT 0 NOT NULL,' + '"tags" TEXT DEFAULT "" NOT NULL,' '"packageorder" INTEGER DEFAULT -1 NOT NULL,' #incremented by trigger '"root" INTEGER DEFAULT -1 NOT NULL, ' '"owner" INTEGER NOT NULL, ' diff --git a/module/database/FileDatabase.py b/module/database/FileDatabase.py index 410f1088e..e9ef99cbe 100644 --- a/module/database/FileDatabase.py +++ b/module/database/FileDatabase.py @@ -180,8 +180,9 @@ class FileMethods(DatabaseMethods): data = OrderedDict() for r in self.c: data[r[0]] = PackageInfo( - r[0], r[1], r[2], r[3], r[4], r[5], r[6], r[7], r[8], r[9], r[10], stats.get(r[0], zero_stats) + r[0], r[1], r[2], r[3], r[4], r[5], r[6], r[7], r[8], None, r[9], r[10], stats.get(r[0], zero_stats) ) + # TODO: tags return data @@ -249,7 +250,7 @@ class FileMethods(DatabaseMethods): return None else: return PackageInfo( - r[0], r[1], r[2], r[3], r[4], r[5], r[6], r[7], r[8], r[9], r[10], stats.get(r[0], zero_stats) if stats else None + r[0], r[1], r[2], r[3], r[4], r[5], r[6], r[7], r[8], None, r[9], r[10], stats.get(r[0], zero_stats) if stats else None ) @async |