From 5bc97a2a58620e359053f51c4df934ad9cd294ad Mon Sep 17 00:00:00 2001 From: Maxime Alves LIRMM Date: Thu, 16 Jul 2020 17:43:46 +0200 Subject: [PATCH] =?UTF-8?q?[lib]=C2=A0remove=20CSVresponse=20from=20parse?= =?UTF-8?q?=5Fquery=20funct?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- halfapi/lib/query.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/halfapi/lib/query.py b/halfapi/lib/query.py index b739916..aa1244c 100644 --- a/halfapi/lib/query.py +++ b/halfapi/lib/query.py @@ -1,6 +1,5 @@ #!/usr/bin/env python3 from starlette.exceptions import HTTPException -from .responses import CSVResponse """ This is the *query* library that contains all the useful functions to treat our @@ -79,9 +78,6 @@ def parse_query(q: str = ""): if 'offset' in params and int(params['offset']) > 0: obj.offset(int(params['offset'])) - if 'format' in params and params['format'] == 'csv': - return CSVResponse([elt for elt in obj.select()]) - return [elt for elt in obj.select()] return select