Skip to content

Commit

Permalink
add 'mortes em' exclusion for ptwiki
Browse files Browse the repository at this point in the history
  • Loading branch information
mpeel committed Apr 8, 2024
1 parent 963d17e commit a137c78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wir_newpages.py
Original file line number Diff line number Diff line change
Expand Up @@ -607,7 +607,7 @@ def pageIsBiography(page='', lang=''):
if not re.search(r'(?im)(:(Catégorie|Category)\s*:\s*(Naissance|Décès) en)', page.text):
return True
elif lang == 'pt':
if not page.title().startswith('Lista ') and 'homicídio' not in page.title().lower():
if not page.title().startswith('Lista ') and 'homicídio' not in page.title().lower() and 'mortes em' not in page.title().lower():
if len(page.title().split(' ')) <= 5:
if re.search(r'(?im)((Categoria|Category)\s*:\s*(Naturais|Nascidos|Pessoas vivas|Mortos))', page.text):
return True
Expand Down

0 comments on commit a137c78

Please sign in to comment.