diff --git a/emgapi/views.py b/emgapi/views.py index ee8e1450c..16a320f42 100644 --- a/emgapi/views.py +++ b/emgapi/views.py @@ -931,7 +931,10 @@ def retrieve(self, request, chart=None, *args, **kwargs): if os.path.isfile(filepath): logger.info("Path %r" % filepath) with open(filepath, "r") as f: - return Response(f.read()) + data = f.read() + if chart!="nucleotide-distribution": + data = "key\tvalue" + "\n" + data + return Response( data) raise Http404()