Skip to content

Commit

Permalink
fix falsey comparison to determine whether a dashboard is archived. c…
Browse files Browse the repository at this point in the history
…loses #6560 (#6561)
  • Loading branch information
guidopetri committed Oct 29, 2023
1 parent 39e4ea1 commit ae77e72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion redash/handlers/organization.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def organization_status(org_slug=None):
"data_sources": models.DataSource.all(current_org, group_ids=current_user.group_ids).count(),
"queries": models.Query.all_queries(current_user.group_ids, current_user.id, include_drafts=True).count(),
"dashboards": models.Dashboard.query.filter(
models.Dashboard.org == current_org, models.Dashboard.is_archived is False
models.Dashboard.org == current_org, models.Dashboard.is_archived.is_(False)
).count(),
}

Expand Down

0 comments on commit ae77e72

Please sign in to comment.