[lib] remove CSVresponse from parse_query funct
This commit is contained in:
parent
5debe56349
commit
5bc97a2a58
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue