Skip to content

Commit

Permalink
Removing unwanted logs
Browse files Browse the repository at this point in the history
  • Loading branch information
sumesh-aot committed Oct 9, 2024
1 parent 0fa150d commit 0643559
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
3 changes: 0 additions & 3 deletions redash/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 0 additions & 2 deletions redash/models/organizations.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 0643559

Please sign in to comment.