Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Leave out h4
  • Loading branch information
kthoden committed Mar 5, 2020
1 parent b0c0c82 commit d7f0d57
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions jsonfixer.py
Expand Up @@ -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("<h4"):
pass
else:
cleaned_index = treat_indexsections(fulltext)
i["fields"]["Html"] = cleaned_index

shutil.move(args.jsonfile, args.jsonfile.replace(".json", "-beforefix.json"))
outfile = args.jsonfile
Expand Down

0 comments on commit d7f0d57

Please sign in to comment.