Skip to content

Commit

Permalink
Merge pull request #54 from SebastienReuiller/sebastienreuiller/fix-c…
Browse files Browse the repository at this point in the history
…lone-card-parameter-target-table-name

fix(clone_card): use parameter target_table_name to determine id
  • Loading branch information
vvaezian authored Jun 6, 2024
2 parents e8d22be + 4070072 commit 6697133
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion metabase_api/metabase_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6697133

Please sign in to comment.