diff --git a/redash/handlers/queries.py b/redash/handlers/queries.py index 1877af2386..6f1aa5b014 100644 --- a/redash/handlers/queries.py +++ b/redash/handlers/queries.py @@ -117,7 +117,9 @@ def get_queries(self, search_term): multi_byte_search=current_org.get_setting("multi_byte_search_enabled"), ) else: - results = models.Query.all_queries(self.current_user.group_ids, self.current_user.id, include_drafts=settings.FEATURE_VIEW_DRAFT_QUERIES) + results = models.Query.all_queries( + self.current_user.group_ids, self.current_user.id, include_drafts=settings.FEATURE_VIEW_DRAFT_QUERIES + ) return filter_by_tags(results, models.Query.tags) @require_permission("view_query")