gnunet-svn
[Top][All Lists]
Advanced

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

[taler-taler-merchant-demos] branch master updated: wrong var


From: gnunet
Subject: [taler-taler-merchant-demos] branch master updated: wrong var
Date: Fri, 21 Oct 2022 00:09:32 +0200

This is an automated email from the git hooks/post-receive script.

grothoff 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 5bfdc99  wrong var
5bfdc99 is described below

commit 5bfdc99e7a2e60c4fe16e692128b7dccc60184c0
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Fri Oct 21 00:09:30 2022 +0200

    wrong var
---
 talermerchantdemos/blog/content.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/talermerchantdemos/blog/content.py 
b/talermerchantdemos/blog/content.py
index 875a5fa..1b2a466 100644
--- a/talermerchantdemos/blog/content.py
+++ b/talermerchantdemos/blog/content.py
@@ -104,7 +104,7 @@ def add_from_html(resource_name, lang):
     teaser = soup.find("p", attrs={"id": ["teaser"]})
     if teaser is None:
         paragraphs = soup.find_all("p")
-        if len(titleat) > 0:
+        if len(paragraphs) > 0:
             teaser = paragraphs[0].prettify()
             if len(teaser) < 100:
                 LOGGER.warning("Cannot extract adequate teaser from '%s'", 
resource_name)

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

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