Skip to content

Commit

Permalink
fix(mvp): Address regression in dpgaspar#1898
Browse files Browse the repository at this point in the history
  • Loading branch information
john-bodley committed Sep 6, 2022
1 parent e7692d1 commit a475b15
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
Binary file added flask_appbuilder/.baseviews.py.swp
Binary file not shown.
2 changes: 1 addition & 1 deletion flask_appbuilder/urltools.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def get_filter_args(filters, disallow_if_not_in_search=True):
"""
Sets filters with the given current request args
Request arg filters are of the form "_flt_<DECIMAL>_<VIEW_NAME>_<COL_NAME>"
Request arg filters are of the form "_flt_<INTEGER>_<VIEW_NAME>_<COL_NAME>"
:param filters: Filter instance to apply the request filters on
:param disallow_if_not_in_search: If True, disallow filters that are not in the search
Expand Down
2 changes: 1 addition & 1 deletion flask_appbuilder/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ def api_read(self):
order_column, order_direction = "", ""
page = get_page_args().get(self.__class__.__name__)
page_size = get_page_size_args().get(self.__class__.__name__)
get_filter_args(self._filters)
get_filter_args(self._filters, disallow_if_not_in_search=False)
joined_filters = self._filters.get_joined_filters(self._base_filters)
count, lst = self.datamodel.query(
joined_filters,
Expand Down

0 comments on commit a475b15

Please sign in to comment.