Photo verification Fixing python3
This commit is contained in:
Awais Qureshi
2019-09-08 19:22:11 +05:00
parent e27439772d
commit 2ca2a39973

View File

@@ -284,4 +284,4 @@ def hash_grading_policy(grading_policy):
separators=(',', ':'), # Remove spaces from separators for more compact representation
sort_keys=True,
)
return b64encode(sha1(ordered_policy.encode("utf-8")).digest())
return b64encode(sha1(ordered_policy.encode("utf-8")).digest()).decode('utf-8')