Skip to content

Commit

Permalink
Exclude geosite rule's tag from eq and hash func.
Browse files Browse the repository at this point in the history
  • Loading branch information
xkww3n committed Oct 15, 2023
1 parent a1af0e3 commit 439be05
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Utils/rule.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ def __str__(self):
return f'Type: "{self.Type}", Payload: "{self.Payload}", Tag: {self.Tag if self.Tag else "NONE"}'

def __hash__(self):
return hash(("type" + self.Type, "payload" + self.Payload, "tag" + self.Tag))
return hash(("type" + self.Type, "payload" + self.Payload))

def __eq__(self, other):
return self.Type == other.Type and self.Payload == other.Payload and self.Tag == other.Tag
return self.Type == other.Type and self.Payload == other.Payload


def custom_convert(src: Path) -> set:
Expand Down

0 comments on commit 439be05

Please sign in to comment.