Skip to content

Commit

Permalink
feat: return operation none as default on widget/report source_config
Browse files Browse the repository at this point in the history
  • Loading branch information
helllllllder committed Sep 2, 2024
1 parent 197e4d0 commit 2888676
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion insights/sources/clients.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
class GenericSQLQueryGenerator:
default_query_type = "count"
default_query_type = "list"

def __init__(
self,
Expand Down
4 changes: 2 additions & 2 deletions insights/widgets/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def source_config(self, sub_widget: str = None, is_live=False):
filters.update(config.get("live_filter", {}))
return (
filters,
config.get("operation", "list"),
config.get("operation", None),
config.get("op_field", None),
config.get("op_sub_field", None),
config.get("limit", None),
Expand All @@ -74,7 +74,7 @@ def source_config(self, sub_widget: str = None, is_live=False):
filters.update(config.get("live_filter", {}))
return (
filters,
config.get("operation", "list"),
config.get("operation", None),
config.get("op_field", None),
config.get("op_sub_field", None),
config.get("limit", None),
Expand Down

0 comments on commit 2888676

Please sign in to comment.