[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-survey] branch master updated: fix
From: |
gnunet |
Subject: |
[taler-survey] branch master updated: fix |
Date: |
Fri, 01 Nov 2019 17:34:54 +0100 |
This is an automated email from the git hooks/post-receive script.
dold pushed a commit to branch master
in repository survey.
The following commit(s) were added to refs/heads/master by this push:
new 25489a0 fix
25489a0 is described below
commit 25489a0f71510f3cb2c7e72b5fe994a7affb6e14
Author: Florian Dold <address@hidden>
AuthorDate: Fri Nov 1 17:34:51 2019 +0100
fix
---
talersurvey/survey/survey.py | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/talersurvey/survey/survey.py b/talersurvey/survey/survey.py
index e143aa4..7a71ded 100644
--- a/talersurvey/survey/survey.py
+++ b/talersurvey/survey/survey.py
@@ -140,8 +140,10 @@ def backend_post(endpoint, json):
# @param params (dict type of) URL parameters to append to the request.
# @return the JSON response from the backend, or a error response
# if something unexpected happens.
-def backend_get(endpoint, params):
+def backend_get(endpoint, params=None):
headers = {"Authorization": "ApiKey " + APIKEY}
+ if params is None:
+ params = dict()
try:
resp = requests.get(
urljoin(BACKEND_URL, endpoint), params=params, headers=headers
--
To stop receiving notification emails like this one, please contact
address@hidden.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-survey] branch master updated: fix,
gnunet <=