From 4070072bf48b9ba530ef3054d369b544d54ebee3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Reuiller?= Date: Thu, 6 Jun 2024 11:03:58 +0200 Subject: [PATCH] fix parameter target_table_name --- metabase_api/metabase_api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/metabase_api/metabase_api.py b/metabase_api/metabase_api.py index f147fc7..67f50ba 100644 --- a/metabase_api/metabase_api.py +++ b/metabase_api/metabase_api.py @@ -166,7 +166,7 @@ def clone_card(self, card_id, if not target_table_name: raise ValueError('Either the name or id of the target table needs to be provided.') else: - source_table_id = self.get_item_id('table', source_table_name) + target_table_id = self.get_item_id('table', target_table_name) if ignore_these_filters: assert type(ignore_these_filters) == list