We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8afd07f commit 68bbf2cCopy full SHA for 68bbf2c
backend/onyx/connectors/mediawiki/wiki.py
@@ -129,7 +129,14 @@ def __init__(
129
self.family = family_class_dispatch(hostname, "WikipediaConnector")()
130
self.site = pywikibot.Site(fam=self.family, code=language_code)
131
self.categories = [
132
- pywikibot.Category(self.site, f"Category:{category.replace(' ', '_')}")
+ pywikibot.Category(
133
+ self.site,
134
+ (
135
+ f"{category.replace(' ', '_')}"
136
+ if category.startswith("Category:")
137
+ else f"Category:{category.replace(' ', '_')}"
138
+ ),
139
+ )
140
for category in categories
141
]
142
0 commit comments