correct unpack response function

andre
Castro0o 5 years ago
parent c86056a0bc
commit 74eb3393d3

@ -31,7 +31,7 @@ def unpack_response(response):
page = response['fulltext'] page = response['fulltext']
d['page'] = page d['page'] = page
for prop in printouts: for prop in printouts:
p_item = answer['printouts'][prop] p_item = response['printouts'][prop]
for prop_val in p_item: for prop_val in p_item:
if isinstance(prop_val, dict) is False: if isinstance(prop_val, dict) is False:
d[prop] = prop_val d[prop] = prop_val

Loading…
Cancel
Save