diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-10-02 21:01:32 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-10-02 21:01:32 +0200 |
commit | 63d9fa12a205b5c770e75c09be1a0a9656eb1ea1 (patch) | |
tree | 1dbf8cd99c00cd59f02cbcc7474ddbf03ef1f8f3 /module/database | |
parent | GUI_progressbar_fix.patch by royflo (diff) | |
download | pyload-63d9fa12a205b5c770e75c09be1a0a9656eb1ea1.tar.xz |
fixed urlmatcher, clear links on start option
Diffstat (limited to 'module/database')
-rw-r--r-- | module/database/FileDatabase.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/module/database/FileDatabase.py b/module/database/FileDatabase.py index 2ca7fd07d..91213d8a6 100644 --- a/module/database/FileDatabase.py +++ b/module/database/FileDatabase.py @@ -863,6 +863,11 @@ class FileMethods(): self.c.execute("SELECT l.plugin FROM links as l INNER JOIN packages as p ON l.package=p.id AND p.folder=? WHERE l.id!=? AND l.status=0 AND l.name=?", (folder, id, filename)) return self.c.fetchone() + @style.queue + def purgeLinks(self): + self.c.execute("DELETE FROM links;") + self.c.execute("DELETE FROM packages;") + DatabaseBackend.registerSub(FileMethods) if __name__ == "__main__": |