Browse Source

param name being shortened on non-array parms

pull/6/head
Rossen Georgiev 10 years ago
parent
commit
7f57b8e6b7
  1. 3
      steam/webapi.py

3
steam/webapi.py

@ -229,7 +229,8 @@ class WebAPIMethod(object):
# add property indicating param can be a list
param['_array'] = param['name'].endswith('[0]')
# remove array suffix
param['name'] = param['name'][:-3]
if param['_array']:
param['name'] = param['name'][:-3]
# turn params from a list to a dict
self._dict['parameters'][param['name']] = param

Loading…
Cancel
Save