Page MenuHomePhabricator

Add bjnwiktionary to wikistats
Closed, ResolvedPublic

Description

Please add new wiki bjnwiktionary to Wikistats, once it is created. Thanks!

Related Objects

StatusSubtypeAssignedTask
ResolvedNone
ResolvedDzahn

Event Timeline

Zabe changed the edit policy from "Custom Policy" to "All Users".Jul 8 2022, 4:42 PM
Dzahn changed the task status from Open to Stalled.Jul 8 2022, 11:31 PM
Dzahn triaged this task as Low priority.
Dzahn changed the task status from Stalled to Open.Aug 17 2022, 6:38 PM

When a language already exists as a Wikipedia and we are adding a sister project, we can just do it like this: (don't have to get the values for language names)

MariaDB [wikistats]> insert into wiktionaries (prefix, lang, loclang, method) select prefix,lang,loclang,method from wikipedias where prefix="bjn";
 /usr/lib/wikistats/update.php wt prefix bjn
sent query: 'select * from wiktionaries where prefix="bjn"'.
A(1/184) - bjn.wiktionary.org - calling API: https://bjn.wiktionary.org/w/api.php?action=query&meta=siteinfo&siprop=statistics&format=php&maxlag=5
-> http answer: 200 -> parsing answer: 0
getting version for https://bjn.wiktionary.org/w/api.php?action=query&meta=siteinfo&siprop=statistics&format=php&maxlag=5---> OK - total: 0 good: 0 edits: 0 users: 0 active users: 0 admins: 0 images: 0
---> update wiktionaries set total="0",good="0",edits="0",users="0",activeusers="0",admins="0",images="0",http="200",si_generator="MediaWiki 1.39.0-wmf.25",ts=NOW() where id="452";

added as 184th Wiktionary

https://wikistats.wmcloud.org/display.php?t=wt