Update app.py
Browse files
app.py
CHANGED
@@ -288,14 +288,14 @@ def main():
|
|
288 |
elif page == "Signup":
|
289 |
signup_page()
|
290 |
elif page == "Journal":
|
291 |
-
|
292 |
st.write('Please login to continue.')
|
293 |
else:
|
294 |
st.write(f"Logged in as {st.session_state.username}")
|
295 |
entry()
|
296 |
elif page == "Advice":
|
297 |
-
if st.session_state
|
298 |
-
st.write('Please login to continue
|
299 |
else:
|
300 |
st.write(f"Logged in as {st.session_state.username}")
|
301 |
journal()
|
|
|
288 |
elif page == "Signup":
|
289 |
signup_page()
|
290 |
elif page == "Journal":
|
291 |
+
if 'username' not in st.session_state:
|
292 |
st.write('Please login to continue.')
|
293 |
else:
|
294 |
st.write(f"Logged in as {st.session_state.username}")
|
295 |
entry()
|
296 |
elif page == "Advice":
|
297 |
+
if "username" not in st.session_state:
|
298 |
+
st.write('Please login to continue')
|
299 |
else:
|
300 |
st.write(f"Logged in as {st.session_state.username}")
|
301 |
journal()
|