From 1ded4e20e8d23707a5453f3fa927481f3a586338 Mon Sep 17 00:00:00 2001 From: Ralph Bean Date: May 03 2018 14:43:27 +0000 Subject: Also allow converting results-by-id from type brew-build. All of the internal tests systems are reporting in this way. --- diff --git a/waiverdb/api_v1.py b/waiverdb/api_v1.py index c464ad9..8090f13 100644 --- a/waiverdb/api_v1.py +++ b/waiverdb/api_v1.py @@ -277,6 +277,7 @@ class WaiversResource(Resource): subject = {'original_spec_nvr': result['data']['original_spec_nvr'][0]} else: if result['data']['type'][0] == 'koji_build' or \ + result['data']['type'][0] == 'brew-build' or \ result['data']['type'][0] == 'bodhi_update': SUBJECT_KEYS = ['item', 'type'] subject = dict([(k, v[0]) for k, v in result['data'].items()