matej_suchanek added projects: Pywikibot-core, TestMe.
matej_suchanek added a comment.
Herald added a subscriber: TerraCodes.

>>> import pywikibot
>>> from pywikibot.bot import WikidataBot
>>> bot = WikidataBot()
>>> bot.cacheSources()
>>> bool(bot.getSource(pywikibot.Site('la', 'wiktionary')))
False
>>> bool(bot.getSource(pywikibot.Site('cs', 'wikipedia')))
True

But...

i18n.translate
# Check whether xdict has multiple projects
if isinstance(xdict, dict):
  if family in xdict:
    xdict = xdict[family]
  elif 'wikipedia' in xdict:
    xdict = xdict['wikipedia']

The wrong edit took place on 7th July whereas the list of wikis was updated with a "wiktionary" key on 11th July. So this shouldn't happen anymore.


TASK DETAIL
https://phabricator.wikimedia.org/T170987

EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: matej_suchanek
Cc: matej_suchanek, TerraCodes, Emijrp, Aklapper, pywikibot-bugs-list, JAnD, Magul, Tbscho, MayS, Mdupont, JJMC89, Avicennasis, Luke081515, jayvdb, Ricordisamoa, Dalba, Masti, Alchimista, Rxy
_______________________________________________
pywikibot-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs

Reply via email to