Commit 95a96575 authored by Anze Vavpetic's avatar Anze Vavpetic

Merge branch 'dev' of source.ijs.si:kt/mothra into dev

parents d8323743 606adddf
......@@ -64,7 +64,18 @@ def call_webservice(input_dict):
ws_dict[i['name']]=''
results = function_to_call(**ws_dict)
output_dict=results
return output_dict
if type(results)==dict:
return output_dict
elif type(results)==list:
output_dict = {}
for l in results:
if type(l)==dict:
for k in l.keys():
a = output_dict.get(k,[])
a.append(l[k])
output_dict[k]=a
return output_dict
return results
def multiply_integers(input_dict):
product = 1
......
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