Commit 8b7c7ede authored by Pietro Cavassin's avatar Pietro Cavassin
Browse files

hotfix - strip parenthesis from column in derivative

parent 2679b1c7
......@@ -840,9 +840,11 @@ class DatabaseTable(Table):
case_tokens = case.split(" ")
case_tokens = case.split(' ')
for i in range(0, len(case_tokens)):
# remove everything prior to first, and after last quotation mark (including them)
# strip everything before and after quotation marks and parentheses (including them)
token_varname = re.sub(r'(^[^\"]*[\"])', '', case_tokens[i])
token_varname = re.sub(r'([\"][^\"]*$)', '', token_varname)
token_varname = re.sub(r'(^[^\(]*[\(])', '', token_varname)
token_varname = re.sub(r'([\)][^\)]*$)', '', token_varname)
if (token_varname == var_name):
case_tokens[i] = case_tokens[i].replace(var_name, var_db)
......
Subproject commit 7f70b1e8a341c56c4b551e45343b4cd24ac3f959
Subproject commit fd005c23b135180b365a5267c970aba3f025ec4e
Subproject commit 9bd31ae76699d32e99e45b8f44918fbc7e445d0b
Subproject commit a98d1ac004ddffad18d50286282cbc401e56f32d
Subproject commit a3fad296971b7cd55bf98796bc4cae63f6f02463
Subproject commit 0fd2d8bc9b0c56225dea1ebfcba3d356b4b9ed03
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment