[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [taler-blog] branch master updated: fix var name
From: |
gnunet |
Subject: |
[GNUnet-SVN] [taler-blog] branch master updated: fix var name |
Date: |
Wed, 10 Jan 2018 14:05:43 +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 aab81fb fix var name
aab81fb is described below
commit aab81fb44fc141c894fcd31466c1d22428b824ac
Author: Florian Dold <address@hidden>
AuthorDate: Wed Jan 10 14:05:28 2018 +0100
fix var name
---
talerblog/blog/blog.py | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/talerblog/blog/blog.py b/talerblog/blog/blog.py
index 9ac9021..481666f 100644
--- a/talerblog/blog/blog.py
+++ b/talerblog/blog/blog.py
@@ -94,9 +94,9 @@ def refund():
flask.abort(500)
address@hidden("/essay/<name>")
address@hidden("/essay/<name>/data/<data>")
-def article(name, data=None):
address@hidden("/essay/<article_name>")
address@hidden("/essay/<article_name>/data/<data>")
+def article(article_name, data=None):
# We use an explicit session ID so that each payment (or payment replay) is
# bound to a browser. This forces re-play and prevents sharing the article
@@ -145,10 +145,10 @@ def article(name, data=None):
return flask.redirect(pay_status["payment_redirect_url"])
if pay_status.get("refunded"):
- return flask.render_template("templates/article_refunded.html",
article_name=name)
+ return flask.render_template("templates/article_refunded.html",
article_name=article_name)
if pay_status.get("paid"):
- article_info = ARTICLES.get(name)
+ article_info = ARTICLES.get(article_name)
if article_info is None:
flask.abort(500)
if data is not None:
@@ -157,7 +157,7 @@ def article(name, data=None):
return "permission denied", 403
return flask.render_template("templates/article_frame.html",
article_file=get_article_file(article_info),
- article_name=name)
+ article_name=article_name)
# 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 var name,
gnunet <=