#400 Make a tiny query.
Merged 4 years ago by jkaluza. Opened 4 years ago by ralph.
ralph/freshmaker tiny-query  into  master

@@ -115,7 +115,7 @@ 

      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()

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
.

Pull-Request has been merged by jkaluza

4 years ago