gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-blog] branch master updated: set refund deadline


From: gnunet
Subject: [taler-blog] branch master updated: set refund deadline
Date: Fri, 01 Nov 2019 18:23:14 +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 f790f3f  set refund deadline
f790f3f is described below

commit f790f3feffb9dbe6cddd262143eac835b2ec2e1e
Author: Florian Dold <address@hidden>
AuthorDate: Fri Nov 1 18:23:11 2019 +0100

    set refund deadline
---
 talerblog/blog/blog.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/talerblog/blog/blog.py b/talerblog/blog/blog.py
index c5effe3..da0e7e8 100644
--- a/talerblog/blog/blog.py
+++ b/talerblog/blog/blog.py
@@ -29,6 +29,7 @@ import base64
 import requests
 import flask
 import lxml.etree
+import time
 from cachelib import UWSGICache, SimpleCache
 from taler.util.talerconfig import TalerConfig
 from ..blog.content import ARTICLES, get_article_file, get_image_file
@@ -339,7 +340,9 @@ def article(article_name, data=None):
             amount=ARTICLE_AMOUNT,
             extra=dict(article_name=article_name),
             fulfillment_url=flask.request.base_url,
-            summary="Essay: " + article_name.replace("_", " ")
+            summary="Essay: " + article_name.replace("_", " "),
+            # 30 minutes time for a refund
+            refund_deadline=f"/Date({int(time.time()) + 60 * 30})/"
         )
         order_resp = backend_post("order", dict(order=order))
         order_id = order_resp["order_id"]

-- 
To stop receiving notification emails like this one, please contact
address@hidden.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]