Skip to content

Commit f80842a

Browse files
committed
improve hash method for mitre group
1 parent 1e4f1a8 commit f80842a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contentctl/objects/mitre_attack_enrichment.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ def __lt__(self, other: MitreAttackGroup) -> bool:
9595
return self.group < other.group
9696

9797
def __hash__(self) -> int:
98-
return id(self)
98+
return hash(self.group)
9999

100100

101101
class MitreAttackEnrichment(BaseModel):

0 commit comments

Comments
 (0)