[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-taler-merchant-demos] branch master updated: use article name ins
From: |
gnunet |
Subject: |
[taler-taler-merchant-demos] branch master updated: use article name instead slug |
Date: |
Thu, 27 Jan 2022 21:52:21 +0100 |
This is an automated email from the git hooks/post-receive script.
dold pushed a commit to branch master
in repository taler-merchant-demos.
The following commit(s) were added to refs/heads/master by this push:
new 36e1b2b use article name instead slug
36e1b2b is described below
commit 36e1b2b54d95e0beb422997f47e9d29a471c8d33
Author: Florian Dold <florian@dold.me>
AuthorDate: Thu Jan 27 21:52:18 2022 +0100
use article name instead slug
---
talermerchantdemos/blog/blog.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/talermerchantdemos/blog/blog.py b/talermerchantdemos/blog/blog.py
index d7ccfa2..aa9d20f 100644
--- a/talermerchantdemos/blog/blog.py
+++ b/talermerchantdemos/blog/blog.py
@@ -279,7 +279,7 @@ def render_article(article_name, lang, data, order_id,
refundable):
return flask.render_template(
"blog-article-frame.html.j2",
article_contents=article_contents,
- article_name=article_name,
+ article_name=article_info.title,
order_id=order_id,
refundable=refundable,
)
@@ -292,8 +292,8 @@ def render_article(article_name, lang, data, order_id,
refundable):
# @param lang which language to use
#
def post_order(article_name, lang):
- name_decoded = urllib.parse.unquote(article_name).replace("_", " ")
- summary = f"Essay: {name_decoded}"
+ article_info = ARTICLES[lang].get(article_name)
+ summary = f"Essay: {article_info.title}"
order = dict(
amount=ARTICLE_AMOUNT,
extra=dict(article_name=article_name),
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-taler-merchant-demos] branch master updated: use article name instead slug,
gnunet <=