Skip to content

Commit

Permalink
improve readability
Browse files Browse the repository at this point in the history
  • Loading branch information
aaraney authored and robertbartel committed Jun 8, 2023
1 parent d6fe3f9 commit b91ae7e
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions python/lib/core/dmod/core/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,17 @@ class Config:
field_serializers = {"uuid": lambda f: str(f)}

def __hash__(self):
return hash(','.join([self.__class__.__name__, self.name, self.category.name, str(hash(self.data_domain)),
self.access_location, str(self.is_read_only), str(hash(self.created_on))]))
members = [
self.__class__.__name__,
self.name,
self.category.name,
str(hash(self.data_domain)),
self.access_location,
str(self.is_read_only),
str(hash(self.created_on)),
]
description = ",".join(members)
return hash(description)

def _set_expires(self, new_expires: datetime):
"""
Expand Down

0 comments on commit b91ae7e

Please sign in to comment.