Skip to content
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.

Commit

Permalink
fix: SQL Lab QuerySource via referrer (apache#22172)
Browse files Browse the repository at this point in the history
(cherry picked from commit f40e6d1)
  • Loading branch information
john-bodley committed Nov 21, 2022
1 parent 7417b9d commit 1efcc04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion superset/models/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ def get_sqla_engine(
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(
Expand Down

0 comments on commit 1efcc04

Please sign in to comment.