Skip to content

Commit

Permalink
remove gdpr for local files
Browse files Browse the repository at this point in the history
  • Loading branch information
t0mdavid-m committed Nov 21, 2024
1 parent 5599c42 commit 19fd5ef
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/build-windows-executable-app.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 1 addition & 3 deletions src/common/captcha_.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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(
Expand Down

0 comments on commit 19fd5ef

Please sign in to comment.