Skip to content

Commit 99869af

Browse files
authored
Fix update_description
This was malformed. My mistake. Let's fix it.
1 parent b68e5f2 commit 99869af

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

datawrapper/__main__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -904,8 +904,7 @@ def update_description(
904904
raise InvalidRequest(msg)
905905

906906
# Update the chart using the update_chart method
907-
metadata = {"metadata": {"describe": _query}}
908-
return self.update_chart(chart_id, metadata=metadata)
907+
return self.update_chart(chart_id, metadata={"describe": _query})
909908

910909
def delete_chart(self, chart_id: str) -> bool:
911910
"""Deletes a chart, table or map.

0 commit comments

Comments
 (0)