Commit a3393ba9 authored by Rafal's avatar Rafal

change for data

parent a15b806c
......@@ -37,7 +37,7 @@ class APIViewSet(viewsets.ModelViewSet):
name = "lib.api.{0}".format(object.source.strip())
mod = __import__(name, fromlist=['API'])
api = mod.API(request)
return Response(data=api.execute(function)['results'][0], content_type="application/json")
return Response(data=api.execute(function)['results'], content_type="application/json")
def get_queryset(self):
queryset = API.objects.all()
......
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