[Secure-testing-commits] r33090 - bin

Holger Levsen holger at moszumanska.debian.org
Mon Mar 23 19:22:39 UTC 2015


Author: holger
Date: 2015-03-23 19:22:36 +0000 (Mon, 23 Mar 2015)
New Revision: 33090

Modified:
   bin/tracker_service.py
Log:
json/#761859: turn packages and issues into dictionaries

Modified: bin/tracker_service.py
===================================================================
--- bin/tracker_service.py	2015-03-23 19:22:13 UTC (rev 33089)
+++ bin/tracker_service.py	2015-03-23 19:22:36 UTC (rev 33090)
@@ -1332,7 +1332,7 @@
 
         data = {}
         for pkg in packages:
-            pkg_issues = []
+            data[pkg] = {}
             for issue in issues[pkg]:
                 description = None
                 debianbug = None
@@ -1388,15 +1388,13 @@
                                         "urgency": suite_urgency,
                                         "nodsa": suite_nodsa }
                     clean_dict(suites[release])
-                pkg_issue = { "issue": issue,
-                              "description": description,
+                pkg_issue = { "description": description,
                               "debianbug": debianbug,
                               "scope": scope,
                               "releases": suites }
                 clean_dict(pkg_issue)
 
-                pkg_issues.append(pkg_issue)
-            data[pkg] = pkg_issues
+                data[pkg][issue]=pkg_issue
 
         json_data = json.dumps(data, sort_keys=True, indent=True)
         return BinaryResult(json_data,'application/octet-stream')




More information about the Secure-testing-commits mailing list