Skip to content

Commit 6697133

Browse files
authored
Merge pull request #54 from SebastienReuiller/sebastienreuiller/fix-clone-card-parameter-target-table-name
fix(clone_card): use parameter target_table_name to determine id
2 parents e8d22be + 4070072 commit 6697133

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

metabase_api/metabase_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ def clone_card(self, card_id,
166166
if not target_table_name:
167167
raise ValueError('Either the name or id of the target table needs to be provided.')
168168
else:
169-
source_table_id = self.get_item_id('table', source_table_name)
169+
target_table_id = self.get_item_id('table', target_table_name)
170170

171171
if ignore_these_filters:
172172
assert type(ignore_these_filters) == list

0 commit comments

Comments
 (0)