From 0b0ac03c2f74996b178282bbaa0684229fd18393 Mon Sep 17 00:00:00 2001 From: pepperpepperpepper Date: Sat, 5 Dec 2015 14:35:37 -0800 Subject: added decimal point precision to constrainednumber --- ricky/params.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'ricky/params.py') diff --git a/ricky/params.py b/ricky/params.py index f0479bb..3d5677b 100644 --- a/ricky/params.py +++ b/ricky/params.py @@ -38,8 +38,13 @@ class Params(object): return self.api.call(self) def as_dict(self): - """displays the params names and values in dictionary form""" - return [param.as_dict() for param in self._params] + """displays the params names and values in dictionary form + used by the api call + """ + result = {} + for param in self._params: + result[param.name] = param.value + return result def from_dict(self, params_dict): """set param values manually from a dictionary""" -- cgit v1.2.3-70-g09d2