From ae77e72821c010f948955d5eb520e44f6403a6b1 Mon Sep 17 00:00:00 2001 From: Guido Petri <18634426+guidopetri@users.noreply.github.com> Date: Sun, 29 Oct 2023 10:06:04 -0500 Subject: [PATCH] fix falsey comparison to determine whether a dashboard is archived. closes #6560 (#6561) --- redash/handlers/organization.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/redash/handlers/organization.py b/redash/handlers/organization.py index a4ddab0b60..4fa004f5f6 100644 --- a/redash/handlers/organization.py +++ b/redash/handlers/organization.py @@ -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(), }