Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix crash caused by sdg not being hashashable #166

Merged
merged 1 commit into from
Jul 27, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions odxtools/dataobjectproperty.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,6 @@ def __hash__(self) -> int:
result += hash(self.long_name)
result += hash(self.description)
result += hash(self.is_visible_raw)
for sdg in self.sdgs:
result += hash(sdg)
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@andlaus hash(sdg) caused a crash due to missing __hash__ in the sdg class, fixing it will require a lot of changes

so this hotfix in order to unblock pdx loading


return result

Expand Down