[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [taler-blog] branch master updated: fix article rendering f
From: |
gnunet |
Subject: |
[GNUnet-SVN] [taler-blog] branch master updated: fix article rendering for articles with images |
Date: |
Thu, 18 Jan 2018 01:09:19 +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 90c9391 fix article rendering for articles with images
90c9391 is described below
commit 90c93918d25a0f276b683d2e86118e5eee8a42e4
Author: Florian Dold <address@hidden>
AuthorDate: Thu Jan 18 01:09:15 2018 +0100
fix article rendering for articles with images
---
talerblog/blog/blog.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/talerblog/blog/blog.py b/talerblog/blog/blog.py
index 13cf2eb..ac44e15 100644
--- a/talerblog/blog/blog.py
+++ b/talerblog/blog/blog.py
@@ -132,7 +132,7 @@ def refund(order_id):
flask.abort(500)
-def render_article(article_name):
+def render_article(article_name, data):
article_info = ARTICLES.get(article_name)
if article_info is None:
flask.abort(500)
@@ -169,7 +169,7 @@ def article(article_name, data=None):
session_id = flask.session["uid"] = str(uuid.uuid4())
if paid_articles_cache.get(session_id + "-" + article_name):
- return render_article(article_name)
+ return render_article(article_name, data)
if order_id and not session_sig:
# If there was an order_id but no session_sig, either the user played
@@ -207,7 +207,7 @@ def article(article_name, data=None):
if pay_status.get("paid"):
paid_articles_cache.set(session_id + "-" + article_name, True)
- return render_article(article_name)
+ return render_article(article_name, data)
# no pay_redirect but article not paid, this should never happen!
flask.abort(500)
--
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: fix article rendering for articles with images,
gnunet <=