mirror of
https://github.com/eitchtee/WYGIWYH.git
synced 2026-04-25 10:08:36 +02:00
refactor: remove debug print
This commit is contained in:
@@ -55,7 +55,6 @@ def check_for_transaction_rules(
|
|||||||
|
|
||||||
for rule in rules:
|
for rule in rules:
|
||||||
if simple.eval(rule.trigger):
|
if simple.eval(rule.trigger):
|
||||||
print("True!")
|
|
||||||
for action in rule.actions.all():
|
for action in rule.actions.all():
|
||||||
if action.field in [
|
if action.field in [
|
||||||
TransactionRuleAction.Field.type,
|
TransactionRuleAction.Field.type,
|
||||||
@@ -92,7 +91,6 @@ def check_for_transaction_rules(
|
|||||||
|
|
||||||
elif action.field == TransactionRuleAction.Field.tags:
|
elif action.field == TransactionRuleAction.Field.tags:
|
||||||
value = simple.eval(action.value)
|
value = simple.eval(action.value)
|
||||||
print(value, action.value)
|
|
||||||
if isinstance(value, list):
|
if isinstance(value, list):
|
||||||
# Clear existing tags
|
# Clear existing tags
|
||||||
instance.tags.clear()
|
instance.tags.clear()
|
||||||
|
|||||||
Reference in New Issue
Block a user