fix: SQL Lab QuerySource via referrer (#22172)

This commit is contained in:
John Bodley 2022-11-21 07:37:10 -08:00 committed by GitHub
parent 9c52cca95a
commit f40e6d1054
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -412,7 +412,7 @@ class Database(
source = utils.QuerySource.DASHBOARD source = utils.QuerySource.DASHBOARD
elif "/explore/" in request.referrer: elif "/explore/" in request.referrer:
source = utils.QuerySource.CHART source = utils.QuerySource.CHART
elif "/superset/sqllab/" in request.referrer: elif "/superset/sqllab" in request.referrer:
source = utils.QuerySource.SQL_LAB source = utils.QuerySource.SQL_LAB
sqlalchemy_url, params = DB_CONNECTION_MUTATOR( sqlalchemy_url, params = DB_CONNECTION_MUTATOR(