taler-merchant-demos

Python-based Frontends for the Demonstration Web site
Log | Files | Refs | Submodules | README | LICENSE

commit 9b68cb45d3a7ff1ada80378c0d3683f85d822942
parent 07546b2b25f6e4f5f09aff369d6990e13fb61d50
Author: Christian Grothoff <christian@grothoff.org>
Date:   Thu, 20 Oct 2022 13:48:42 +0200

-use sourceline, not sourcepos

Diffstat:
Mtalermerchantdemos/blog/content.py | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/talermerchantdemos/blog/content.py b/talermerchantdemos/blog/content.py @@ -106,7 +106,7 @@ def add_from_html(resource_name, lang): paragraphs = soup.find_all("p") lists = soup.find_all("li") if (len(paragraphs) > 0) and (len(lists) > 0): - if (paragraphs[0].sourcepos > lists[0].sourcepos): + if (paragraphs[0].sourceline > lists[0].sourceline): titleat = lists else: titleat = paragraphs