diff options
author | Martin Fischer <martin@push-f.com> | 2024-09-03 06:53:05 +0200 |
---|---|---|
committer | Martin Fischer <martin@push-f.com> | 2024-09-03 06:54:25 +0200 |
commit | 8c93914d9f896e67fd147e8cce09238c41097370 (patch) | |
tree | 04af51bc5f6c0498da38af60537124a248528671 | |
parent | 241f38dba7dd9e9649672d1c2540c7c478b4ffa7 (diff) |
Ref https://wiki.openstreetmap.org/wiki/Special:Diff/2197443.
-rwxr-xr-x | proposals.py | 5 |
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: |