Browse Source

param name being shortened on non-array parms

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

1
steam/webapi.py

@ -229,6 +229,7 @@ class WebAPIMethod(object):
# add property indicating param can be a list
param['_array'] = param['name'].endswith('[0]')
# remove array suffix
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