From 85f3c9cde7f5bc0759c340da3073d49e9ab33b02 Mon Sep 17 00:00:00 2001 From: Kiril Kovachev Date: Fri, 1 Sep 2023 19:16:18 +0100 Subject: [PATCH] Remove arbitrary hard-coded iteration limit --- bulgarian-subject-object/bg-subject-object.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bulgarian-subject-object/bg-subject-object.py b/bulgarian-subject-object/bg-subject-object.py index a5644ad..6bf338a 100644 --- a/bulgarian-subject-object/bg-subject-object.py +++ b/bulgarian-subject-object/bg-subject-object.py @@ -15,7 +15,7 @@ def main() -> None: with open("words-to-edit.txt") as f: words_to_fix = f.read().splitlines() - for page in kovachevbot.iterate_safe((kovachevbot.wikt_page(word) for word in words_to_fix), max_entries=1): + for page in kovachevbot.iterate_safe((kovachevbot.wikt_page(word) for word in words_to_fix)): page: pywikibot.Page title = page.title() parsed = mwparserfromhell.parse(page.text)