From d7f0d57cc6547e09a209e3ab86bcf6035aefbb7e Mon Sep 17 00:00:00 2001 From: kthoden Date: Thu, 5 Mar 2020 12:09:37 +0100 Subject: [PATCH] Leave out h4 --- jsonfixer.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/jsonfixer.py b/jsonfixer.py index 2b8a5bf..fe1f614 100644 --- a/jsonfixer.py +++ b/jsonfixer.py @@ -148,8 +148,11 @@ def main(): if args.indexsections: if i["model"] == "eoapublications.indexsection": fulltext = i["fields"]["Html"] - cleaned_index = treat_indexsections(fulltext) - i["fields"]["Html"] = cleaned_index + if fulltext.startswith("