summaryrefslogtreecommitdiffstats
path: root/module/database/DatabaseBackend.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-07-08 12:10:22 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-07-08 12:10:22 +0200
commitd5034d4f8929221f021b61a82e893cb5d53c3676 (patch)
tree5ddf19b63077a39f069b3b642f55647fdcc90f20 /module/database/DatabaseBackend.py
parentbasic event manager (diff)
downloadpyload-d5034d4f8929221f021b61a82e893cb5d53c3676.tar.xz
calculate queue count, db improvements
Diffstat (limited to 'module/database/DatabaseBackend.py')
-rw-r--r--module/database/DatabaseBackend.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/module/database/DatabaseBackend.py b/module/database/DatabaseBackend.py
index c147aa018..534b5a53c 100644
--- a/module/database/DatabaseBackend.py
+++ b/module/database/DatabaseBackend.py
@@ -247,7 +247,7 @@ class DatabaseBackend(Thread):
self.c.execute('SELECT max(id) FROM packages')
pid = self.c.fetchone()[0]
if pid:
- pid = int(fid)
+ pid = int(pid)
else:
pid = 0
self.c.execute('UPDATE SQLITE_SEQUENCE SET seq=? WHERE name=?', (pid, "packages"))