Skip to content

Commit

Permalink
feature: adding comments in default filters
Browse files Browse the repository at this point in the history
  • Loading branch information
AlanJaeger committed Aug 21, 2024
1 parent b31e81c commit 67f7ce3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion insights/widgets/usecases/get_source_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 67f7ce3

Please sign in to comment.