mirror of https://github.com/apache/superset.git
fix: SQL Lab QuerySource via referrer (#22172)
This commit is contained in:
parent
9c52cca95a
commit
f40e6d1054
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue