aboutsummaryrefslogtreecommitdiff
path: root/src/web
diff options
context:
space:
mode:
Diffstat (limited to 'src/web')
-rw-r--r--src/web/views/api/v2/common.py8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/web/views/api/v2/common.py b/src/web/views/api/v2/common.py
index 570e088b..64c76a7e 100644
--- a/src/web/views/api/v2/common.py
+++ b/src/web/views/api/v2/common.py
@@ -139,13 +139,7 @@ class PyAggResourceMulti(PyAggAbstractResource):
limit = request.json.pop('limit', 10)
order_by = request.json.pop('order_by', None)
except Exception:
- attrs = self.reqparse_args(right='read', default=False)
- for k, v in request.args.items():
- if k in attrs.keys():
- if attrs[k]['type'] in [bool, int]:
- args[k] = ast.literal_eval(v)
- else:
- args[k] = v
+ args = self.reqparse_args(right='read', default=False)
limit = request.args.get('limit', 10)
order_by = request.args.get('order_by', None)
query = self.controller.read(**args)
bgstack15