Skip to content

Commit

Permalink
Fix parsing query columns
Browse files Browse the repository at this point in the history
  • Loading branch information
lwesterhof committed Nov 22, 2024
1 parent 6793b4b commit 3d488f3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions policies_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@ def _column_in_select_inp(selectInp, columns):


def _column_in_cond_inp(sqlCondInp, columns):
condition_data = ast.literal_eval(str(sqlCondInp))
condition_columns = list(map(lambda c: c[0], condition_data))
condition_columns = ast.literal_eval(str(list(genquery_inp.sqlCondInp.inx)))
for column in columns:
if column in condition_columns:
return True
Expand Down

0 comments on commit 3d488f3

Please sign in to comment.