Skip to content

Commit

Permalink
Fix buggy state initialization in app testing doc (#881)
Browse files Browse the repository at this point in the history
* Fix buggy state initialization in app testing doc

* Use consistent notation across app testing docs
  • Loading branch information
snehankekre authored Nov 15, 2023
1 parent 9930536 commit 3980368
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ Main app file:
import streamlit as st

# Initialize st.session_state.beans
beans = st.session_state.get("beans", 0)
st.session_state.beans = st.session_state.get("beans", 0)

st.title("Bean counter :paw_prints:")

Expand Down

0 comments on commit 3980368

Please sign in to comment.