Skip to content
Closed
Changes from 2 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
4 changes: 2 additions & 2 deletions google/cloud/firestore_v1/base_document.py
Original file line number Diff line number Diff line change
Expand Up @@ -368,8 +368,8 @@ def __eq__(self, other):
return self._reference == other._reference and self._data == other._data

def __hash__(self):
seconds = int(self.update_time.timestamp())
nanos = self.update_time.nanosecond
seconds = int(self.update_time.seconds)
nanos = self.update_time.nanos
return hash(self._reference) + hash(seconds) + hash(nanos)

@property
Expand Down