summaryrefslogtreecommitdiffstats
path: root/pyload/database
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2013-08-18 17:01:17 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2013-08-18 17:01:17 +0200
commit9a6ea22616cf3cc67e292c908521b79764400faf (patch)
tree1924843f28d992490d867d0557da90dfb1da6404 /pyload/database
parentfixed login (diff)
downloadpyload-9a6ea22616cf3cc67e292c908521b79764400faf.tar.xz
new linkgrabber
Diffstat (limited to 'pyload/database')
-rw-r--r--pyload/database/FileDatabase.py18
1 files changed, 0 insertions, 18 deletions
diff --git a/pyload/database/FileDatabase.py b/pyload/database/FileDatabase.py
index 649c1f1ef..a07486443 100644
--- a/pyload/database/FileDatabase.py
+++ b/pyload/database/FileDatabase.py
@@ -128,24 +128,6 @@ class FileMethods(DatabaseMethods):
self.c.execute('UPDATE files SET fileorder=fileorder-1 WHERE fileorder > ? AND package=? AND owner=?',
(order, package, owner))
- @async
- def saveCollector(self, owner, data):
- """ simply save the json string to database """
- self.c.execute("INSERT INTO collector(owner, data) VALUES (?,?)", (owner, data))
-
- @queue
- def retrieveCollector(self, owner):
- """ retrieve the saved string """
- self.c.execute('SELECT data FROM collector WHERE owner=?', (owner,))
- r = self.c.fetchone()
- if not r: return None
- return r[0]
-
- @async
- def deleteCollector(self, owner):
- """ drop saved user collector """
- self.c.execute('DELETE FROM collector WHERE owner=?', (owner,))
-
@queue
def getAllFiles(self, package=None, search=None, state=None, owner=None):
""" Return dict with file information