storage api changed
diff --git a/storage_api.py b/storage_api.py
index 7af126d..fb3d8b7 100644
--- a/storage_api.py
+++ b/storage_api.py
@@ -164,7 +164,7 @@
raw_data = f.read()
document = json.loads(raw_data)
d = {}
- result = []
+ result = {}
build_types = {"GA", "master"}
for i in range(len(document) - 1, -1, - 1):
@@ -180,7 +180,7 @@
m.build_type = d[k].pop("type")
m.md5 = d[k].pop("iso_md5")
m.results = {k: v for k, v in d[k].items()}
- result.append(m)
+ result[m.build_type] = m
return result