Skip to content

Commit

Permalink
fix(examples): fix examples uri for sqlite
Browse files Browse the repository at this point in the history
  • Loading branch information
villebro committed Sep 14, 2024
1 parent e909465 commit cb32a31
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 @@ -1632,7 +1632,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 = (
f"""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 cb32a31

Please sign in to comment.