Skip to content

Commit 6273cca

Browse files
authored
Merge pull request #56 from ndobbs/update-findall-regexp
chore: update regexp to treat string as raw, eliminating warnings
2 parents 0356b0c + d8eaa51 commit 6273cca

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
@@ -208,7 +208,7 @@ def clone_card(self, card_id,
208208

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

214214
# replace column IDs from old table with the column IDs from new table

0 commit comments

Comments
 (0)