Skip to content

Commit

Permalink
fix controllo not defined sometimes
Browse files Browse the repository at this point in the history
  • Loading branch information
t0mdavid-m committed Jun 19, 2024
1 parent 60bf9d4 commit da44fc2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ def page_setup(page: str = "", help_text: str = "") -> dict[str, Any]:
st.session_state.workspace = Path(workspaces_dir, "default")

# If run in hosted mode, show captcha as long as it has not been solved
if not st.session_state["controllo"]:
if ("controllo" not in st.session_state) or (not st.session_state["controllo"]):
# Hide all pages
hide_pages(ALL_SECTIONS)
# Apply captcha by calling the captcha_control function
Expand Down

0 comments on commit da44fc2

Please sign in to comment.