https://bugzilla.wikimedia.org/show_bug.cgi?id=70444

            Bug ID: 70444
           Summary: Family file for anarchopedia looks wrong
           Product: Pywikibot
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: General
          Assignee: [email protected]
          Reporter: [email protected]
       Web browser: ---
   Mobile Platform: ---

There are few site codes which are obsolete and redirected to other. Seems the
Family.obsolote dict is twisted, e.g.

        self.obsolete = {
           'deu': 'de',
        }

must be

        self.obsolete = {
           'de': 'ger',
           'deu': 'ger',
        }

some entry are overridden by later entries e.g. for 'ell' code

'nno' and 'nob' are still valid and not obsolete

See
http://pt.anarchopedia.org/api.php?action=query&meta=siteinfo&siprop=interwikimap&sifilteriw=local

Note: the api is very very slow and should be cached maybe some kind of
precaching e.g. for Site.lang to get the right i18n quickly.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to