Encode string before hashing
This commit is contained in:
parent
9a0d6ce056
commit
1d53cd89bf
1 changed files with 1 additions and 1 deletions
|
|
@ -1004,7 +1004,7 @@ class Document(BaseDocument):
|
|||
|
||||
def get_signature(self):
|
||||
"""Returns signature (hash) for private URL."""
|
||||
return hashlib.sha224(get_datetime_str(self.creation)).hexdigest()
|
||||
return hashlib.sha224(get_datetime_str(self.creation).encode()).hexdigest()
|
||||
|
||||
def get_liked_by(self):
|
||||
liked_by = getattr(self, "_liked_by", None)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue