Spaces:
Sleeping
Sleeping
Jon Solow
commited on
Commit
·
d96db7a
1
Parent(s):
dafc5b6
Replace experimental_rerun with rerun
Browse files- src/login_component.py +3 -3
- src/pages/98_Load_Data.py +1 -1
src/login_component.py
CHANGED
@@ -37,17 +37,17 @@ def get_authorization_button():
|
|
37 |
if result and "token" in result:
|
38 |
# If authorization successful, save token in session state
|
39 |
st.session_state.token = result.get("token")
|
40 |
-
st.
|
41 |
else:
|
42 |
# # If token exists in session state, allow logout
|
43 |
st.session_state["token"]
|
44 |
if st.button("Logout"):
|
45 |
del st.session_state.token
|
46 |
-
st.
|
47 |
# # If token exists in session state, show the token
|
48 |
# token = st.session_state["token"]
|
49 |
# if st.button("Refresh Token"):
|
50 |
# # If refresh token button is clicked, refresh the token
|
51 |
# token = oauth2.refresh_token(token)
|
52 |
# st.session_state.token = token
|
53 |
-
# st.
|
|
|
37 |
if result and "token" in result:
|
38 |
# If authorization successful, save token in session state
|
39 |
st.session_state.token = result.get("token")
|
40 |
+
st.rerun()
|
41 |
else:
|
42 |
# # If token exists in session state, allow logout
|
43 |
st.session_state["token"]
|
44 |
if st.button("Logout"):
|
45 |
del st.session_state.token
|
46 |
+
st.rerun()
|
47 |
# # If token exists in session state, show the token
|
48 |
# token = st.session_state["token"]
|
49 |
# if st.button("Refresh Token"):
|
50 |
# # If refresh token button is clicked, refresh the token
|
51 |
# token = oauth2.refresh_token(token)
|
52 |
# st.session_state.token = token
|
53 |
+
# st.rerun()
|
src/pages/98_Load_Data.py
CHANGED
@@ -17,7 +17,7 @@ def get_page():
|
|
17 |
|
18 |
if st.button("Refresh Data"):
|
19 |
load_assets()
|
20 |
-
st.
|
21 |
|
22 |
if selected_table := st.selectbox("Describe a table:", current_tables_list, index=0):
|
23 |
describe_df = duckdb.sql(f"DESCRIBE {selected_table}").df()
|
|
|
17 |
|
18 |
if st.button("Refresh Data"):
|
19 |
load_assets()
|
20 |
+
st.rerun()
|
21 |
|
22 |
if selected_table := st.selectbox("Describe a table:", current_tables_list, index=0):
|
23 |
describe_df = duckdb.sql(f"DESCRIBE {selected_table}").df()
|