diff --git a/datawrapper/__main__.py b/datawrapper/__main__.py index f45879c..a209076 100644 --- a/datawrapper/__main__.py +++ b/datawrapper/__main__.py @@ -904,8 +904,7 @@ def update_description( raise InvalidRequest(msg) # Update the chart using the update_chart method - metadata = {"metadata": {"describe": _query}} - return self.update_chart(chart_id, metadata=metadata) + return self.update_chart(chart_id, metadata={"describe": _query}) def delete_chart(self, chart_id: str) -> bool: """Deletes a chart, table or map.