From 439be05ffce8bc16d3be308f56ac6b4a351dcd26 Mon Sep 17 00:00:00 2001 From: xkww3n Date: Sun, 15 Oct 2023 16:03:48 +0800 Subject: [PATCH] Exclude geosite rule's tag from eq and hash func. --- Utils/rule.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Utils/rule.py b/Utils/rule.py index 291e60f..9abe40b 100644 --- a/Utils/rule.py +++ b/Utils/rule.py @@ -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: