[lib] remove CSVresponse from parse_query funct

This commit is contained in:
Maxime Alves LIRMM 2020-07-16 17:43:46 +02:00
parent 5debe56349
commit 5bc97a2a58
1 changed files with 0 additions and 4 deletions

View File

@ -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