Skip to content

Commit

Permalink
chore: 0.0.5a3
Browse files Browse the repository at this point in the history
  • Loading branch information
raozixuan committed Jan 3, 2022
1 parent 9ac37cd commit 391f807
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions onto/view/rest_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ class ParamsParams(Serializable):
page_size = attrs.int
current = attrs.int

def append_conditions(self, q):
return q

class Sort(Serializable):
foo = attrs.string
Expand Down Expand Up @@ -457,12 +459,13 @@ def get(self):
params_d = json.loads(params_str)
sort_d = json.loads(sort_str)
filter_d = json.loads(filter_str)
params = Params.from_dict({
params_cls = getattr( _self.view_model_cls, 'params', Params )
params = params_cls.from_dict({
'params': params_d,
'sort': sort_d,
'filter': filter_d,
})
result = list(_self.view_model_cls.get_many())
result = list(_self.view_model_cls.get_many(params=params))
paginated = _self.paginated_query_cls.new(
data=result,
total=0,
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
setuptools.setup(
name="onto",
# Beta release
version="0.0.5a2",
version="0.0.5a3",
author="Bill Rao",
author_email="billrao@me.com",
description="Build reactive back end with ease ",
Expand Down

0 comments on commit 391f807

Please sign in to comment.