diff --git a/.github/workflows/build-windows-executable-app-with-pyinstaller.yaml b/.github/workflows/build-windows-executable-app-with-pyinstaller.yaml index af504ad0..43cd29a8 100644 --- a/.github/workflows/build-windows-executable-app-with-pyinstaller.yaml +++ b/.github/workflows/build-windows-executable-app-with-pyinstaller.yaml @@ -228,7 +228,6 @@ jobs: mv python-${{ env.PYTHON_VERSION }} streamlit_exe mv run_app.bat streamlit_exe cp -r src streamlit_exe - cp -r gdpr_consent streamlit_exe cp -r content streamlit_exe cp -r docs streamlit_exe cp -r assets streamlit_exe diff --git a/.github/workflows/build-windows-executable-app.yaml b/.github/workflows/build-windows-executable-app.yaml index f92e3ae3..2305e59b 100644 --- a/.github/workflows/build-windows-executable-app.yaml +++ b/.github/workflows/build-windows-executable-app.yaml @@ -216,7 +216,6 @@ jobs: mv python-${{ env.PYTHON_VERSION }} streamlit_exe mv run_app.bat streamlit_exe cp -r src streamlit_exe - cp -r gdpr_consent streamlit_exe cp -r content streamlit_exe cp -r docs streamlit_exe cp -r assets streamlit_exe diff --git a/src/common/captcha_.py b/src/common/captcha_.py index 5788d08e..b8dfaa68 100644 --- a/src/common/captcha_.py +++ b/src/common/captcha_.py @@ -10,9 +10,6 @@ import os -consent_component = st_components.declare_component("gdpr_consent", path=Path("gdpr_consent")) - - def delete_all_pages(main_script_path_str: str) -> None: """ Delete all pages except the main page from an app's configuration. @@ -203,6 +200,7 @@ def captcha_control(): ga = st.session_state.settings['analytics']['google-analytics']['enabled'] pp = st.session_state.settings['analytics']['piwik-pro']['enabled'] if (ga or pp) and (st.session_state.tracking_consent is None): + consent_component = st_components.declare_component("gdpr_consent", path=Path("gdpr_consent")) with st.spinner(): # Ask for consent st.session_state.tracking_consent = consent_component(