Commit 37df54cc authored by Thomas Gambier's avatar Thomas Gambier 🚴🏼

slap: OpenOrder.requets supports json-in-xml

parent 2a273d72
......@@ -266,6 +266,8 @@ class OpenOrder(SlapRequester):
elif not isinstance(partition_parameter_kw, dict):
raise ValueError("Unexpected type of partition_parameter_kw '%s'" %
partition_parameter_kw)
if len(partition_parameter_kw) == 1 and '_' in partition_parameter_kw:
partition_parameter_kw ['_'] = json.dumps(partition_parameter_kw ['_'])
if filter_kw is None:
filter_kw = {}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment