diff options
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")) |