[models] Fix build id string creation

This commit is contained in:
derrod 2020-04-27 14:31:12 +02:00
parent 5e7bdca8c4
commit 7bf517aa00

View file

@ -143,7 +143,7 @@ class ManifestMeta:
s.update(self.build_version.encode('utf-8'))
s.update(self.launch_exe.encode('utf-8'))
s.update(self.launch_command.encode('utf-8'))
self._build_id = b64encode(s.digest()).replace('+', '-').replace('/', '_').replace('=', '')
self._build_id = b64encode(s.digest()).decode('ascii').replace('+', '-').replace('/', '_').replace('=', '')
return self._build_id
@classmethod