summaryrefslogtreecommitdiffstats
path: root/module/remote
diff options
context:
space:
mode:
Diffstat (limited to 'module/remote')
-rw-r--r--module/remote/thriftbackend/Handler.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/module/remote/thriftbackend/Handler.py b/module/remote/thriftbackend/Handler.py
index 1a9625394..bde93b240 100644
--- a/module/remote/thriftbackend/Handler.py
+++ b/module/remote/thriftbackend/Handler.py
@@ -424,7 +424,7 @@ class Handler(Iface):
"""
rawData = self.serverMethods.get_package_data(pid)
order = {}
- for pyfile in rawData["links"]:
+ for id, pyfile in rawData["links"].iteritems():
while pyfile["order"] in order.keys(): #just in case
pyfile["order"] += 1
order[pyfile["order"]] = pyfile["id"]