Wellverywell added a comment.

  Workaround:
  Instead of this code (working for Wikidata):
  
    item.editEntity(summary='my edit')
  
  Use this (works for Commons):
  
    data = item.toJSON(diffto=getattr(item, '_content', None))
    data['claims'] = data['statements']
    del data['statements']
    commons.editEntity(item, data, summary='my edit')

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

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

_______________________________________________
pywikibot-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to