Skip to content

Commit

Permalink
Fix incorrect logic in rule group version tracking
Browse files Browse the repository at this point in the history
  • Loading branch information
Atte Niemi committed Oct 18, 2024
1 parent 8c1d69a commit 302f53c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions caracara/modules/custom_ioa/custom_ioa.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,8 +216,8 @@ def _update_create_delete_rules(self, group: IoaRuleGroup, comment: str) -> IoaR
)
# If successful (i.e. no exceptions raised), clear the deletion queue
group.rules_to_delete = []
new_group.version += len(new_group.rules) + bool(group.rules_to_delete)

new_group.version += len(new_rules) + bool(group.rules_to_delete)
return new_group

@filter_string
Expand Down

0 comments on commit 302f53c

Please sign in to comment.