Browse Source

get_product_info: _sha in hex representation

This garantees that the output is serializable by JSON (no bytes objects)
pull/308/head
Rossen Georgiev 4 years ago
parent
commit
12b11f3217
  1. 5
      steam/client/builtins/apps.py

5
steam/client/builtins/apps.py

@ -1,3 +1,4 @@
from binascii import hexlify
import vdf
from steam.enums import EResult, EServerType
from steam.enums.emsg import EMsg
@ -149,7 +150,7 @@ class Apps(object):
data['apps'][app.appid]['_missing_token'] = app.missing_token
data['apps'][app.appid]['_change_number'] = app.change_number
data['apps'][app.appid]['_sha'] = app.sha
data['apps'][app.appid]['_sha'] = hexlify(app.sha).decode('ascii')
data['apps'][app.appid]['_size'] = app.size
if app.buffer and raw:
@ -163,7 +164,7 @@ class Apps(object):
data['packages'][pkg.packageid]['_missing_token'] = pkg.missing_token
data['packages'][pkg.packageid]['_change_number'] = pkg.change_number
data['packages'][pkg.packageid]['_sha'] = pkg.sha
data['packages'][pkg.packageid]['_sha'] = hexlify(pkg.sha).decode('ascii')
data['packages'][pkg.packageid]['_size'] = pkg.size
if pkg.buffer and raw:

Loading…
Cancel
Save