Skip to content

Commit

Permalink
Convert deprecated filter operator "xor" to its synonym "one"
Browse files Browse the repository at this point in the history
  • Loading branch information
Nick-Hall committed Feb 14, 2025
1 parent 6a4017c commit 8a38b97
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gramps/gen/filters/_filterparser.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@ def startElement(self, tag, attrs):
op = "and"
except ValueError:
op = attrs["function"]
if op == "xor": # Synonym for "one" removed in v6.0
op = "one"
self.f.set_logical_op(op)
if "invert" in attrs:
self.f.set_invert(attrs["invert"])
Expand Down

0 comments on commit 8a38b97

Please sign in to comment.