From 7a53ccfec866f7f9814752bb9c5d65de78fb12e1 Mon Sep 17 00:00:00 2001 From: Alexey Kulikov Date: Tue, 8 Aug 2023 01:35:11 +0100 Subject: [PATCH] fix --- migration/extract.py | 1 + 1 file changed, 1 insertion(+) diff --git a/migration/extract.py b/migration/extract.py index 4c8a95b7..0aee6ce8 100644 --- a/migration/extract.py +++ b/migration/extract.py @@ -414,6 +414,7 @@ def extract_html(entry, shout_id = None, cleanup=False): body_clean = cleanup_html(body_orig) if body_clean != body_orig: print(f"[migration] html cleaned for slug {entry.get('slug', None)}") + body_orig = body_clean if shout_id: extract_footnotes(body_orig, shout_id) body_html = str(BeautifulSoup(body_orig, features="html.parser"))