summaryrefslogtreecommitdiffstats
path: root/pyLoadCore.py
diff options
context:
space:
mode:
Diffstat (limited to 'pyLoadCore.py')
-rwxr-xr-xpyLoadCore.py19
1 files changed, 19 insertions, 0 deletions
diff --git a/pyLoadCore.py b/pyLoadCore.py
index cb6714f85..d1677a17b 100755
--- a/pyLoadCore.py
+++ b/pyLoadCore.py
@@ -354,6 +354,25 @@ class Core(object):
"url": f.url
})
data.append(ds)
+ return data
+
+ def get_collector_packages(self):
+ data = []
+ for q in self.file_list.data["packages"]:
+ ds = {
+ "id": q.data.id,
+ "name": q.data.package_name,
+ "folder": q.data.folder,
+ "files": []
+ }
+ for f in q.links:
+ ds["files"].append({
+ "name": f.status.name,
+ "status": f.status.type,
+ "url": f.url
+ })
+ data.append(ds)
+ return data
#def move_urls_up(self, ids):
# for id in ids: