Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0ba71c36 authored by Adam Tauber's avatar Adam Tauber
Browse files

[fix] make ina engine compatible with the new response json

parent 6255b33c
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -53,9 +53,7 @@ def response(resp):

    # we get html in a JSON container...
    response = loads(resp.text)
    if "content" not in response:
        return []
    dom = html.fromstring(response["content"])
    dom = html.fromstring(response)

    # parse results
    for result in dom.xpath(results_xpath):