Skip to content

Commit

Permalink
feat: return none on isnull
Browse files Browse the repository at this point in the history
  • Loading branch information
helllllllder committed Jun 13, 2024
1 parent 755c044 commit dfa6ab3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion insights/sources/filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def apply(self, field, operation, value, table_alias):
return f"{table_alias}.{field} ILIKE (%s)", [f"%{value}%"]
elif operation == "isnull":
return f"{table_alias}.{field} IS (%s) NULL", [
"NOT" if value is True else ""
"NOT" if value is True else None
]
elif operation == "or":
if type(field) is not dict:
Expand Down

0 comments on commit dfa6ab3

Please sign in to comment.