Skip to content

Commit

Permalink
Update hash
Browse files Browse the repository at this point in the history
  • Loading branch information
clinton-encord committed Dec 30, 2024
1 parent f9be314 commit 95f8784
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion encord/objects/html_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def to_dict(self):
}

def __hash__(self):
return hash(self.__repr__())
return f"{self.start.node}-{self.start.offset}-{self.end.node}-{self.end.offset}"

@classmethod
def from_dict(cls, d: dict):
Expand Down

0 comments on commit 95f8784

Please sign in to comment.