tweaking the way data is returned (#532)
This commit is contained in:
parent
b46ff4158a
commit
e2143d3ee8
|
@ -120,7 +120,7 @@ def unwrap_pagination(data, output_schema):
|
|||
return data
|
||||
else:
|
||||
marshaled_data = {'total': data['total']}
|
||||
marshaled_data['items'] = output_schema.dump(data['items'], many=True)
|
||||
marshaled_data['items'] = output_schema.dump(data['items'], many=True).data
|
||||
return marshaled_data
|
||||
else:
|
||||
return output_schema.dump(data).data
|
||||
|
|
Loading…
Reference in New Issue