Skip to content

Commit

Permalink
Save default templates
Browse files Browse the repository at this point in the history
old code doesn't save template "!" if analyze template is not enabled
  • Loading branch information
xxyzz committed Dec 9, 2024
1 parent 0c3c9f6 commit bc04c93
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/wikitextprocessor/dumpparser.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ def add_default_templates(wtp: "Wtp") -> None:
title = f"{ns_local_name}:{title}"
if not wtp.page_exists(title, ns_id):
wtp.add_page(title, ns_id, body)
wtp.db_conn.commit()


def analyze_and_overwrite_pages(
Expand Down

0 comments on commit bc04c93

Please sign in to comment.