From 0e9fcaa00bbb787fa14a652169ec1f124abf8259 Mon Sep 17 00:00:00 2001 From: Daniel Gaspar Date: Fri, 13 Oct 2023 12:03:08 +0100 Subject: [PATCH] fix lint --- flask_appbuilder/views.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/flask_appbuilder/views.py b/flask_appbuilder/views.py index 573c4abc7c..8439ea3c5b 100644 --- a/flask_appbuilder/views.py +++ b/flask_appbuilder/views.py @@ -255,7 +255,9 @@ def api_read(self): log.warning("This API is deprecated and will be removed on 2.3.X") # Get arguments for ordering if get_order_args().get(self.__class__.__name__): - order_column, order_direction = get_order_args().get(self.__class__.__name__) + order_column, order_direction = get_order_args().get( + self.__class__.__name__ + ) else: order_column, order_direction = "", "" page = get_page_args().get(self.__class__.__name__) @@ -484,7 +486,9 @@ def api_readvalues(self): log.warning("This API is deprecated and will be removed on 2.3.X") # Get arguments for ordering if get_order_args().get(self.__class__.__name__): - order_column, order_direction = get_order_args().get(self.__class__.__name__) + order_column, order_direction = get_order_args().get( + self.__class__.__name__ + ) else: order_column, order_direction = "", "" get_filter_args(self._filters)