[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [taler-blog] branch master updated: decrease article cost t
From: |
gnunet |
Subject: |
[GNUnet-SVN] [taler-blog] branch master updated: decrease article cost to make it work with tipping |
Date: |
Sat, 09 Dec 2017 16:35:57 +0100 |
This is an automated email from the git hooks/post-receive script.
dold pushed a commit to branch master
in repository blog.
The following commit(s) were added to refs/heads/master by this push:
new aba6c0c decrease article cost to make it work with tipping
aba6c0c is described below
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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] [taler-blog] branch master updated: decrease article cost to make it work with tipping,
gnunet <=