diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-07-08 12:10:22 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-07-08 12:10:22 +0200 |
commit | d5034d4f8929221f021b61a82e893cb5d53c3676 (patch) | |
tree | 5ddf19b63077a39f069b3b642f55647fdcc90f20 /module/database/DatabaseBackend.py | |
parent | basic event manager (diff) | |
download | pyload-d5034d4f8929221f021b61a82e893cb5d53c3676.tar.xz |
calculate queue count, db improvements
Diffstat (limited to 'module/database/DatabaseBackend.py')
-rw-r--r-- | module/database/DatabaseBackend.py | 2 |
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")) |