From 67f7ce35fa19396e1bc601f68b81f16d77ea2226 Mon Sep 17 00:00:00 2001 From: AlanJaeger Date: Wed, 21 Aug 2024 16:01:27 -0300 Subject: [PATCH] feature: adding comments in default filters --- insights/widgets/usecases/get_source_data.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/insights/widgets/usecases/get_source_data.py b/insights/widgets/usecases/get_source_data.py index cc31618..c9c2195 100644 --- a/insights/widgets/usecases/get_source_data.py +++ b/insights/widgets/usecases/get_source_data.py @@ -74,7 +74,7 @@ def simple_source_data_operation( # se entrar aqui pelo cross data, tirar o [0] pois isso gera erro no cross # vc pode verificar se tem slug subwidget_1 or 2 sub = filters.pop("slug", [None]) - if ["sub_widget_1", "sub_widget_2"] in sub: + if sub in ["sub_widget_1", "sub_widget_2"]: default_filters, operation, op_field, op_sub_field, limit = ( widget.source_config( sub_widget=filters.pop("slug", [None]), is_live=is_live