[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-taler-merchant-demos] branch master updated: tip->reward rename
From: |
gnunet |
Subject: |
[taler-taler-merchant-demos] branch master updated: tip->reward rename |
Date: |
Mon, 21 Aug 2023 13:36:17 +0200 |
This is an automated email from the git hooks/post-receive script.
dold pushed a commit to branch master
in repository taler-merchant-demos.
The following commit(s) were added to refs/heads/master by this push:
new 6a53db1 tip->reward rename
6a53db1 is described below
commit 6a53db16949a09da92ed75acec274c5308b379cc
Author: Florian Dold <florian@dold.me>
AuthorDate: Mon Aug 21 13:36:14 2023 +0200
tip->reward rename
---
talermerchantdemos/survey/survey.py | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/talermerchantdemos/survey/survey.py
b/talermerchantdemos/survey/survey.py
index ec325a7..b9fb3de 100644
--- a/talermerchantdemos/survey/survey.py
+++ b/talermerchantdemos/survey/survey.py
@@ -14,7 +14,7 @@
# GNU TALER; see the file COPYING. If not, see <http://www.gnu.org/licenses/>
#
# @author Marcello Stanisci
-# @brief Minimal Website to tip users who fill the survey.
+# @brief Minimal Website to reward users who fill the survey.
import os
import re
@@ -122,24 +122,24 @@ def favicon():
##
-# Tell the backend to 'authorize' a tip; this means that
+# Tell the backend to 'authorize' a reward; this means that
# the backend will allocate a certain amount to be later
# picked up by the wallet.
#
# @return the URL where to redirect the browser, in order
-# for the wallet to pick the tip up, or a error page
+# for the wallet to pick the reward up, or a error page
# otherwise.
@app.route("/<lang>/submit-survey", methods=["POST"])
def submit_survey(lang):
- tip_spec = dict(
+ reward_spec = dict(
amount=CURRENCY + ":1.0",
next_url=os.environ.get("TALER_ENV_URL_INTRO", "https://taler.net/"),
justification="Payment methods survey",
)
backend_resp = backend_post(
- INSTANCED_URL, "private/tips", tip_spec, auth_token=APIKEY
+ INSTANCED_URL, "private/rewards", reward_spec, auth_token=APIKEY
)
- return flask.redirect(backend_resp["tip_status_url"])
+ return flask.redirect(backend_resp["reward_status_url"])
##
@@ -196,7 +196,7 @@ def handler_405(e):
@app.errorhandler(BackendException)
def handler_backend_exception(e):
- # The tip reserve was never created
+ # The reward reserve was never created
if e.backend_json.get("code") == 2753:
t = flask.render_template(
"survey-error-graceful.html.j2",
@@ -205,7 +205,7 @@ def handler_backend_exception(e):
)
return flask.make_response(t, 500)
- # The tip reserve was never created
+ # The reward reserve was never created
if e.backend_json.get("code") == 2752:
t = flask.render_template(
"survey-error-graceful.html.j2",
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-taler-merchant-demos] branch master updated: tip->reward rename,
gnunet <=