diff --git a/scripts/plotly_streamlit.py b/scripts/plotly_streamlit.py index 36d3492..b50b3c9 100755 --- a/scripts/plotly_streamlit.py +++ b/scripts/plotly_streamlit.py @@ -54,7 +54,8 @@ st.markdown(""" @st.cache_resource() def get_connection(path: str): - return sqlite3.connect(path, check_same_thread=False) + uri = f"file:{path}?mode=ro&cache=shared" + return sqlite3.connect(uri, uri=True, check_same_thread=False) def get_data(_conn: Connection):