From e6d3c150ec48d3c1e7b8f31b9d8b174da05570bf Mon Sep 17 00:00:00 2001 From: Ralph Bean Date: Jul 10 2019 20:39:10 +0000 Subject: Make a tiny query. Here, we don't actually process the results of the query beyond looking for the `total` integer that is reported. This should speed things up, and get us around some of these [504 gateway timeouts](https://http.cat/504). --- diff --git a/contrib/get_freshmaker_stats.py b/contrib/get_freshmaker_stats.py index 7e55720..3588570 100644 --- a/contrib/get_freshmaker_stats.py +++ b/contrib/get_freshmaker_stats.py @@ -115,7 +115,7 @@ def is_content_advisory_rebuilt_by_freshmaker(errata_name): data = r.json() errata_id = str(data["content"]["content"]["errata_id"]) - url = FRESHMAKER_URL + "events/?search_key=%s" % errata_id + url = FRESHMAKER_URL + "events/?search_key=%s&per_page=1" % errata_id r = requests.get(url) r.raise_for_status() data = r.json()