Page MenuHomePhabricator

Statistics fail on Wikidata harvested dataset
Closed, ResolvedPublic

Description

2019-09-09_13:46:59 Make statistics...

Traceback (most recent call last):
  File "/data/project/heritage/heritage/erfgoedbot/database_statistics.py", line 281, in <module>
    main()
  File "/data/project/heritage/heritage/erfgoedbot/database_statistics.py", line 274, in main
    country, language, conn, cursor)
KeyError: u'au'

Event Timeline

Can’t reproduce this locally. I did a harvest of ge:ka and another of au:en, ran fill_table_monuments_all and then database_statistics − the stats are generated just fine :-/

Change 535292 had a related patch set uploaded (by Jean-Frédéric; owner: Jean-Frédéric):
[labs/tools/heritage@master] Do not skip Wikidata datasets when making statistis

https://gerrit.wikimedia.org/r/535292

Change 535292 merged by jenkins-bot:
[labs/tools/heritage@master] Do not skip Wikidata datasets when making statistics

https://gerrit.wikimedia.org/r/535292

Mentioned in SAL (#wikimedia-cloud) [2019-09-09T21:42:35Z] <JeanFred> Deploy latest from Git master: 0a4fbae, dff30f0 (T232394, T138668)