Skip to content

Commit

Permalink
chore: update regexp to treat string as raw, eliminating warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
ndobbs committed Sep 27, 2024
1 parent 0356b0c commit d8eaa51
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 @@ -208,7 +208,7 @@ def clone_card(self, card_id,

# find column IDs
import re
res = re.findall("\['field', .*?\]", query_data_str)
res = re.findall(r"\['field', .*?\]", query_data_str)
source_column_IDs = [ eval(i)[1] for i in res ]

# replace column IDs from old table with the column IDs from new table
Expand Down

0 comments on commit d8eaa51

Please sign in to comment.