BOM-621 Fix hashing in a bunch of places.

This commit is contained in:
Feanil Patel
2019-09-19 15:53:39 -04:00
parent 9740e2e077
commit 4eaf875741
6 changed files with 11 additions and 11 deletions

View File

@@ -39,7 +39,7 @@ def get_cache_key(**kwargs):
"""
key = '__'.join(['{}:{}'.format(item, value) for item, value in six.iteritems(kwargs)])
return hashlib.md5(key).hexdigest()
return hashlib.md5(key.encode('utf-8')).hexdigest()
def get_data_consent_share_cache_key(user_id, course_id):