diff options
Diffstat (limited to 'pyload/database/File.py')
-rw-r--r-- | pyload/database/File.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pyload/database/File.py b/pyload/database/File.py index d97dc7c5e..a49ba6d3a 100644 --- a/pyload/database/File.py +++ b/pyload/database/File.py @@ -670,7 +670,7 @@ class FileMethods(object): def addLinks(self, links, package): """ links is a list of tupels (url, plugin)""" order = self._nextFileOrder(package) - orders = [order + x for x in range(len(links))] + orders = [order + x for x in xrange(len(links))] links = [(x[0], x[0], ".".join((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) |