Fix params
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Michel Roux 2022-12-24 14:10:42 +00:00
parent bda4f24abb
commit edd06e5bbb

View File

@ -36,6 +36,7 @@ class FlareRequests(requests.Session):
else: else:
raise requests.RequestException(response) raise requests.RequestException(response)
if params:
url += "&" if len(url.split("?")) > 1 else "?" url += "&" if len(url.split("?")) > 1 else "?"
url = f"{url}{urllib.parse.urlencode(params)}" url = f"{url}{urllib.parse.urlencode(params)}"