From 99869afe1007bb44fe18670cbec7940ccf230b92 Mon Sep 17 00:00:00 2001 From: Ben Welsh Date: Wed, 31 Jan 2024 16:52:17 -0500 Subject: [PATCH] Fix update_description This was malformed. My mistake. Let's fix it. --- datawrapper/__main__.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/datawrapper/__main__.py b/datawrapper/__main__.py index c6818ae..7f167b1 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.