This is an automated email from the ASF dual-hosted git repository. johnbodley pushed a commit to branch john-bodley--fix-sql-lab-query-source in repository https://gitbox.apache.org/repos/asf/superset.git
commit 44395245165952edca60e64072aa5d04e88dbbe5 Author: John Bodley <[email protected]> AuthorDate: Sat Nov 19 01:17:55 2022 -0800 fix: SQL Lab QuerySource via referrer --- superset/models/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/superset/models/core.py b/superset/models/core.py index 2ac824e88c..4efcf311c6 100755 --- a/superset/models/core.py +++ b/superset/models/core.py @@ -412,7 +412,7 @@ class Database( source = utils.QuerySource.DASHBOARD elif "/explore/" in request.referrer: source = utils.QuerySource.CHART - elif "/superset/sqllab/" in request.referrer: + elif "/superset/sqllab" in request.referrer: source = utils.QuerySource.SQL_LAB sqlalchemy_url, params = DB_CONNECTION_MUTATOR(
