diff options
Diffstat (limited to 'pyload/database/FileDatabase.py')
| -rw-r--r-- | pyload/database/FileDatabase.py | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/pyload/database/FileDatabase.py b/pyload/database/FileDatabase.py index fdffe3fe7..5bd1e5a5f 100644 --- a/pyload/database/FileDatabase.py +++ b/pyload/database/FileDatabase.py @@ -612,7 +612,7 @@ class FileMethods:      @style.queue      def addLink(self, url, name, plugin, package):          order = self._nextFileOrder(package) -        self.c.execute('INSERT INTO links(url, name, plugin, package, linkorder) VALUES(?,?,?,?,?)', (url, name, plugin, package, order)) +        self.c.execute('INSERT INTO links(url, name, plugin, package, linkorder) VALUES(?,?,?,?,?)', (url, name, (plugintype, pluginname), package, order))          return self.c.lastrowid      @style.queue @@ -620,7 +620,7 @@ class FileMethods:          """ links is a list of tupels (url, plugin)"""          order = self._nextFileOrder(package)          orders = [order + x for x in range(len(links))] -        links = [(x[0], x[0], x[1], package, o) for x, o in zip(links, orders)] +        links = [(x[0], x[0], (x[1], x[2]), package, o) for x, o in zip(links, orders)]          self.c.executemany('INSERT INTO links(url, name, plugin, package, linkorder) VALUES(?,?,?,?,?)', links)      @style.queue | 
