summaryrefslogtreecommitdiffstats
path: root/module/FileDatabase.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-08-09 19:33:40 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-08-09 19:33:40 +0200
commitd050a96342627db76dc5ac9af951c948de2fc075 (patch)
tree7ab189620a2cdcdf0b989266d75b9d6a124350b1 /module/FileDatabase.py
parentaccount save function, DELETE OLD accounts.conf !!! (diff)
downloadpyload-d050a96342627db76dc5ac9af951c948de2fc075.tar.xz
removed gocr dependency
Diffstat (limited to 'module/FileDatabase.py')
-rw-r--r--module/FileDatabase.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/module/FileDatabase.py b/module/FileDatabase.py
index 62f42917e..b8116d14e 100644
--- a/module/FileDatabase.py
+++ b/module/FileDatabase.py
@@ -347,6 +347,7 @@ class FileHandler:
self.cache[id].abortDownload()
self.cache[id].status = 3
self.cache[id].name = self.cache[id].url
+ self.cache[id].error = ""
self.cache[id].sync()
else:
self.db.restartFile(id)
@@ -679,7 +680,7 @@ class FileDatabaseBackend(Thread):
@async
def restartFile(self, id):
- self.c.execute('UPDATE links SET status=3 WHERE id=?', ( str(id), ) )
+ self.c.execute('UPDATE links SET status=3,error="" WHERE id=?', ( str(id), ) )
@async
def restartPackage(self, id):