Skip to content

Commit

Permalink
Update baseentity.py
Browse files Browse the repository at this point in the history
  • Loading branch information
LeMyst committed Jan 7, 2022
1 parent 5a9b737 commit 27c35a4
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions wikibaseintegrator/entities/baseentity.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,11 +119,9 @@ def _write(self, data: Dict = None, summary: str = None, allow_anonymous: bool =
# new_json_repr['claims'].pop(claim)
# data = json.JSONEncoder().encode(new_json_repr)

json_data: str = ujson.dumps(data)

payload: Dict[str, Any] = {
'action': 'wbeditentity',
'data': json_data,
'data': ujson.dumps(data),
'format': 'json',
'summary': summary
}
Expand Down

0 comments on commit 27c35a4

Please sign in to comment.