fix(rules): Update or Create Transaction rule unable to match againt dates and other types

This commit is contained in:
Herculino Trotta
2025-02-25 10:48:43 -03:00
parent 95b1481dd5
commit 0f60f8d486
2 changed files with 7 additions and 7 deletions
+2 -4
View File
@@ -297,10 +297,8 @@ class UpdateOrCreateTransactionRuleAction(models.Model):
search_query = Q()
def add_to_query(field_name, value, operator):
if isinstance(value, (int, str)):
lookup = f"{field_name}__{operator}"
return Q(**{lookup: value})
return Q()
lookup = f"{field_name}__{operator}"
return Q(**{lookup: value})
if self.search_account:
value = simple.eval(self.search_account)