esvapi: fix compile error on LDC 1.33.0

This commit is contained in:
Jeremy Baxter 2024-06-26 13:21:25 +12:00
parent 7eb179255f
commit a2be024c45

View file

@ -330,9 +330,11 @@ class ESVApi
JSONValue JSONValue
makeQuery(long page) makeQuery(long page)
=> parseJSON(makeRequest("search/?page-size=100" {
return parseJSON(makeRequest("search/?page-size=100"
~ "&page=" ~ page.to!string() ~ "&page=" ~ page.to!string()
~ "&q=" ~ query.tr(" ", "+"))); ~ "&q=" ~ query.tr(" ", "+")));
}
pages ~= makeQuery(1); pages ~= makeQuery(1);
if (pages[0]["total_pages"].integer == 1) { if (pages[0]["total_pages"].integer == 1) {