Skip to content

Commit

Permalink
feature: prints to debug filter
Browse files Browse the repository at this point in the history
  • Loading branch information
AlanJaeger committed Aug 15, 2024
1 parent 1ae092d commit 9294628
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions insights/widgets/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ def is_configurable(self):
return self.dashboard.name != "Atendimento humano"

def source_config(self, sub_widget: str = None, is_live=False):
print("subwidte", sub_widget)
print("sub2", self.config[sub_widget])
config = self.config if sub_widget is None else self.config[sub_widget]
# default_filters, operation, op_field, limit
filters = config.get("filter", {})
Expand Down
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 @@ -69,7 +69,7 @@ def simple_source_data_operation(
user_email: str = "",
):
query_kwargs = {}

print("filtro", filters)
default_filters, operation, op_field, op_sub_field, limit = widget.source_config(
sub_widget=filters.pop("slug", [None])[0], is_live=is_live
)
Expand Down

0 comments on commit 9294628

Please sign in to comment.