mirror of
https://github.com/apache/superset.git
synced 2024-09-12 08:39:45 -04:00
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
Block a user