From cb6daf7ae9691563fb1c93d7e5aaa5dc71e886b0 Mon Sep 17 00:00:00 2001 From: Minecrell <minecrell@minecrell.net> Date: Mon, 30 Oct 2023 15:36:29 +0100 Subject: [PATCH] wiki: Fix SoC page end match (MR 1) AssertionError: can't find end in category_socs.html: <div class="printfooter"> Seems like it's <div class="printfooter" data-nosnippet=""> now. Let's just match the prefix only. --- ttq/wiki.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ttq/wiki.py b/ttq/wiki.py index feeaecd..248e7d0 100644 --- a/ttq/wiki.py +++ b/ttq/wiki.py @@ -32,7 +32,7 @@ def parse_socs(): ttq.cache.cache_update(cache_name, f"{WIKI_URL}/Category:Socs") start = '<div class="mw-category-group">' - end = '<div class="printfooter">' + end = '<div class="printfooter"' html = ttq.html.read_from_cache(cache_name, start, end) SOCS = ttq.html.parse_list(html) -- GitLab