Skip to content

Commit

Permalink
fix(examples): fix examples uri for sqlite (apache#30277)
Browse files Browse the repository at this point in the history
  • Loading branch information
villebro authored Oct 3, 2024
1 parent 2a458a4 commit 6217cb6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion superset/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -1649,7 +1649,9 @@ def EMAIL_HEADER_MUTATOR( # pylint: disable=invalid-name,unused-argument

# URI to database storing the example data, points to
# SQLALCHEMY_DATABASE_URI by default if set to `None`
SQLALCHEMY_EXAMPLES_URI = "sqlite:///" + os.path.join(DATA_DIR, "examples.db")
SQLALCHEMY_EXAMPLES_URI = (
"sqlite:///" + os.path.join(DATA_DIR, "examples.db") + "?check_same_thread=false"
)

# Optional prefix to be added to all static asset paths when rendering the UI.
# This is useful for hosting assets in an external CDN, for example
Expand Down

0 comments on commit 6217cb6

Please sign in to comment.