You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When calling the "wdi_core.WDItemEngine.delete_items" function on our custom Wikibase(v1.32) the code crashes with the error message:
"for x in requests.get(url=url, params=params, headers=headers).json()['query']['pages'].values()][
KeyError: 'pages'"
I ran this piece of code requests.get(url=url, params=params, headers=headers).json() and got this as the result
{'batchcomplete': '', 'query': {'normalized': [{'from': 'Wikidata:Requests_for_deletions', 'to': 'wikidata:Requests for deletions'}], 'interwiki': [{'title': 'wikidata:Requests for deletions', 'iw': 'wikidata'}]}}
The text was updated successfully, but these errors were encountered:
This might require a redesign. This function is aimed at wikidata, where the functionality is a bit different than in wikibase. In the latter users can delete directly, whereas in Wikidata (at least from a user perspective) deletions are issued through requests for deletions.
When calling the "wdi_core.WDItemEngine.delete_items" function on our custom Wikibase(v1.32) the code crashes with the error message:
"for x in requests.get(url=url, params=params, headers=headers).json()['query']['pages'].values()][
KeyError: 'pages'"
I ran this piece of code requests.get(url=url, params=params, headers=headers).json() and got this as the result
{'batchcomplete': '', 'query': {'normalized': [{'from': 'Wikidata:Requests_for_deletions', 'to': 'wikidata:Requests for deletions'}], 'interwiki': [{'title': 'wikidata:Requests for deletions', 'iw': 'wikidata'}]}}
The text was updated successfully, but these errors were encountered: