Skip to content

Commit

Permalink
Merge pull request #416 from palewire/patch-14
Browse files Browse the repository at this point in the history
Fix update_description
  • Loading branch information
chekos authored Feb 1, 2024
2 parents bcf8036 + 99869af commit 066ffdc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions datawrapper/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 066ffdc

Please sign in to comment.