diff --git a/redash/models/__init__.py b/redash/models/__init__.py index 52038d7528..7da9f68b50 100644 --- a/redash/models/__init__.py +++ b/redash/models/__init__.py @@ -1066,9 +1066,6 @@ def name_as_slug(self): @classmethod def all(cls, org, group_ids, user_id): - for d in Dashboard.query.all(): - logger.debug(f"D ---->{d}") - query = ( Dashboard.query.options(joinedload(Dashboard.user).load_only("id", "name", "details", "email")) .distinct(cls.lowercase_name, Dashboard.created_at, Dashboard.slug) diff --git a/redash/models/organizations.py b/redash/models/organizations.py index 0510356019..b340a2b848 100644 --- a/redash/models/organizations.py +++ b/redash/models/organizations.py @@ -43,8 +43,6 @@ def get_by_id(cls, _id): def default_group(self): logger.debug("INSIDE Default Group ") logger.debug(f"self.groups : {self.groups}") - for g in self.groups.all(): - logger.debug(f"GROUP {g.name}---{g.type}") default_group = self.groups.filter(Group.name == "default", Group.type == Group.BUILTIN_GROUP).first() if not default_group: default_group = self.groups.first()