summaryrefslogtreecommitdiff
path: root/proposals.py
diff options
context:
space:
mode:
authorMartin Fischer <martin@push-f.com>2024-09-03 06:53:05 +0200
committerMartin Fischer <martin@push-f.com>2024-09-03 06:54:25 +0200
commit8c93914d9f896e67fd147e8cce09238c41097370 (patch)
tree04af51bc5f6c0498da38af60537124a248528671 /proposals.py
parent241f38dba7dd9e9649672d1c2540c7c478b4ffa7 (diff)
fix: Template:Proposal_Page was renamedHEADmaster
Ref https://wiki.openstreetmap.org/wiki/Special:Diff/2197443.
Diffstat (limited to 'proposals.py')
-rwxr-xr-xproposals.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/proposals.py b/proposals.py
index dc770b4..35a7f38 100755
--- a/proposals.py
+++ b/proposals.py
@@ -63,7 +63,7 @@ def is_stub(doc):
for page in osmwiki.query_pages(
generator='embeddedin',
- geititle='Template:Proposal Page',
+ geititle='Template:Proposal page',
geilimit='max',
prop='revisions',
rvprop='content',
@@ -73,7 +73,8 @@ for page in osmwiki.query_pages(
text = page['revisions'][0]['slots']['main']['content']
doc = mwparserfromhell.parse(text)
proposal_page_templates = doc.filter_templates(
- matches=lambda t: t.name.matches('Proposal Page')
+ matches=lambda t: t.name.matches('Proposal page')
+ or t.name.matches('Proposal Page')
)
if not proposal_page_templates: