Skip to content

Commit a63f546

Browse files
Merge pull request haseeb-heaven#16 from haseeb-heaven:streamlit
Update privacy policy and fix Accept Privacy Bug
2 parents b856281 + 6ca85cf commit a63f546

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

libs/utils.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -148,9 +148,10 @@ def show_privacy_policy(mode) -> bool:
148148
elif mode == 'api':
149149
st.markdown("""
150150
## Code Execution License - API:
151-
- **The platform uses the [JDoodle Compiler API](https://www.jdoodle.com/compiler-api) to compile and run your code.**
151+
- **The platform uses the [Code Runner - API](https://code-runner-plugin.vercel.app/privacy) which in backend uses [JDoodle Compiler API](https://www.jdoodle.com/compiler-api) to compile and run your code.**
152152
- *The JDoodle Compiler API is a third-party service that provides online code execution for various programming languages.*
153-
- *The JDoodle Compiler API may collect and use your code and other information in accordance with their own [terms and conditions](https://www.jdoodle.com/terms) and [privacy policy](https://code-runner-plugin.vercel.app/privacy).*
153+
- *The JDoodle Compiler API may collect and use your code and other information in accordance with their own [terms and conditions](https://www.jdoodle.com/terms).*
154+
- *The Code Runner API may collect and use your code and other information in accordance with their own [privacy policy](https://code-runner-plugin.vercel.app/privacy).*
154155
""")
155156
agree = st.radio('I agree to the Code Execution License - API', ('Not Sure','Yes', 'No'), index=0)
156157
if agree == 'Yes':
@@ -231,4 +232,6 @@ def handle_privacy_policy(compiler_mode):
231232
st.toast(f"Please select the privacy policy for {compiler_mode.lower()} compiler mode.", icon="❌")
232233

233234
if st.session_state[privacy_accepted_key] in [True, False]:
234-
st.session_state[privacy_shown_key] = False
235+
st.session_state[privacy_shown_key] = False
236+
# Update the application.
237+
st.rerun()

0 commit comments

Comments
 (0)