This is an automated email from the ASF dual-hosted git repository.
tai pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/superset.git
The following commit(s) were added to refs/heads/master by this push:
new ddde178e3b fix(sqllab): error with lazy_gettext for tab titles (#25469)
ddde178e3b is described below
commit ddde178e3bf2d73811e3e39dbb79a9a86f1e0970
Author: ʈᵃᵢ <[email protected]>
AuthorDate: Fri Sep 29 19:31:20 2023 -0700
fix(sqllab): error with lazy_gettext for tab titles (#25469)
---
superset/views/sql_lab/views.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/superset/views/sql_lab/views.py b/superset/views/sql_lab/views.py
index f07705bac3..012fdc2dc5 100644
--- a/superset/views/sql_lab/views.py
+++ b/superset/views/sql_lab/views.py
@@ -21,7 +21,7 @@ from flask import redirect, request, Response
from flask_appbuilder import expose
from flask_appbuilder.models.sqla.interface import SQLAInterface
from flask_appbuilder.security.decorators import has_access, has_access_api
-from flask_babel import lazy_gettext as _
+from flask_babel import gettext as __
from sqlalchemy import and_
from superset import db
@@ -90,7 +90,7 @@ class TabStateView(BaseSupersetView):
user_id=get_user_id(),
# This is for backward compatibility
label=query_editor.get("name")
- or query_editor.get("title", _("Untitled Query")),
+ or query_editor.get("title", __("Untitled Query")),
active=True,
database_id=query_editor["dbId"],
schema=query_editor.get("schema"),