[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [taler-backoffice] 26/31: decrease article cost to make it
From: |
gnunet |
Subject: |
[GNUnet-SVN] [taler-backoffice] 26/31: decrease article cost to make it work with tipping |
Date: |
Thu, 04 Jan 2018 18:09:49 +0100 |
This is an automated email from the git hooks/post-receive script.
dold pushed a commit to branch master
in repository backoffice.
commit aba6c0c753ae35fb3696b93c21820320df8d67dc
Author: Florian Dold <address@hidden>
AuthorDate: Sat Dec 9 16:35:46 2017 +0100
decrease article cost to make it work with tipping
---
talerblog/blog/blog.py | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/talerblog/blog/blog.py b/talerblog/blog/blog.py
index f1589c0..650edd0 100644
--- a/talerblog/blog/blog.py
+++ b/talerblog/blog/blog.py
@@ -46,7 +46,8 @@ TC = TalerConfig.from_env()
BACKEND_URL = TC["frontends"]["backend"].value_string(required=True)
CURRENCY = TC["taler"]["currency"].value_string(required=True)
INSTANCE = TC["blog"]["instance"].value_string(required=True)
-ARTICLE_AMOUNT = dict(value=1, fraction=0, currency=CURRENCY)
+
+ARTICLE_AMOUNT = dict(value=0, fraction=50000000, currency=CURRENCY)
app.config.from_object(__name__)
@@ -86,7 +87,7 @@ def refund():
return flask.jsonify(dict(error="Aborting refund: article not
payed")), 401
resp = requests.post(urljoin(BACKEND_URL, "refund"),
json=dict(order_id=order_id,
- refund=dict(value=1, fraction=0,
currency=CURRENCY),
+ refund=ARTICLE_AMOUNT,
reason="Demo reimbursement",
instance=INSTANCE))
if resp.status_code != 200:
--
To stop receiving notification emails like this one, please contact
address@hidden
- [GNUnet-SVN] [taler-backoffice] 24/31: better 402 page, (continued)
- [GNUnet-SVN] [taler-backoffice] 24/31: better 402 page, gnunet, 2018/01/04
- [GNUnet-SVN] [taler-backoffice] 01/31: submodule, gnunet, 2018/01/04
- [GNUnet-SVN] [taler-backoffice] 15/31: typo, gnunet, 2018/01/04
- [GNUnet-SVN] [taler-backoffice] 25/31: add taler nojs tags to make CSS magic work, gnunet, 2018/01/04
- [GNUnet-SVN] [taler-backoffice] 19/31: export PYTHONPATH before tests are run, and include articles and data into the installed bundle., gnunet, 2018/01/04
- [GNUnet-SVN] [taler-backoffice] 07/31: setuptools, gnunet, 2018/01/04
- [GNUnet-SVN] [taler-backoffice] 02/31: auto{make,conf}, gnunet, 2018/01/04
- [GNUnet-SVN] [taler-backoffice] 13/31: helper module, gnunet, 2018/01/04
- [GNUnet-SVN] [taler-backoffice] 10/31: moving data, gnunet, 2018/01/04
- [GNUnet-SVN] [taler-backoffice] 23/31: fix names, gnunet, 2018/01/04
- [GNUnet-SVN] [taler-backoffice] 26/31: decrease article cost to make it work with tipping,
gnunet <=
- [GNUnet-SVN] [taler-backoffice] 27/31: adjust tests, gnunet, 2018/01/04
- [GNUnet-SVN] [taler-backoffice] 03/31: bootstrap/wsgi/launcher, gnunet, 2018/01/04
- [GNUnet-SVN] [taler-backoffice] 06/31: base template, gnunet, 2018/01/04
- [GNUnet-SVN] [taler-backoffice] 18/31: naming leftovers, gnunet, 2018/01/04
- [GNUnet-SVN] [taler-backoffice] 22/31: pacify PEP checkers, gnunet, 2018/01/04
- [GNUnet-SVN] [taler-backoffice] 21/31: linting the launcher, gnunet, 2018/01/04
- [GNUnet-SVN] [taler-backoffice] 28/31: survey in side bar, gnunet, 2018/01/04
- [GNUnet-SVN] [taler-backoffice] 14/31: missing templates, gnunet, 2018/01/04
- [GNUnet-SVN] [taler-backoffice] 11/31: actual blog logic, gnunet, 2018/01/04
- [GNUnet-SVN] [taler-backoffice] 05/31: m4, gnunet, 2018/01/04