From 7f57b8e6b7d6f6feccc983b8961683772ac48a38 Mon Sep 17 00:00:00 2001 From: Rossen Georgiev Date: Thu, 12 Nov 2015 00:13:49 +0200 Subject: [PATCH] param name being shortened on non-array parms --- steam/webapi.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/steam/webapi.py b/steam/webapi.py index 2d673ea..2358b25 100644 --- a/steam/webapi.py +++ b/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