You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by ru...@apache.org on 2024/10/03 21:48:53 UTC

(superset) branch master updated: fix(examples): fix examples uri for sqlite (#30277)

This is an automated email from the ASF dual-hosted git repository.

rusackas pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/superset.git


The following commit(s) were added to refs/heads/master by this push:
     new 6217cb636f fix(examples): fix examples uri for sqlite (#30277)
6217cb636f is described below

commit 6217cb636f345f6dab2852c6c533228c94c5fce8
Author: Ville Brofeldt <33...@users.noreply.github.com>
AuthorDate: Thu Oct 3 14:48:48 2024 -0700

    fix(examples): fix examples uri for sqlite (#30277)
---
 superset/config.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/superset/config.py b/superset/config.py
index 42a46012e8..eeb4ded6c6 100644
--- a/superset/config.py
+++ b/superset/config.py
@@ -1649,7 +1649,9 @@ SEND_FILE_MAX_AGE_DEFAULT = int(timedelta(days=365).total_seconds())
 
 # 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