Spaces:
Sleeping
Sleeping
Debug tab: revert Data Inventory to plain button, no session_state or caption
Browse files
visualization/debug_page.py
CHANGED
|
@@ -620,9 +620,7 @@ def render_debug(
|
|
| 620 |
# ------------------------------------------------------------------
|
| 621 |
st.subheader("Data Inventory")
|
| 622 |
|
| 623 |
-
|
| 624 |
-
|
| 625 |
-
if show_library:
|
| 626 |
with st.expander("All database tables (row counts)", expanded=True):
|
| 627 |
inv_df = _query_db_inventory(conn)
|
| 628 |
if inv_df.empty:
|
|
@@ -652,8 +650,6 @@ def render_debug(
|
|
| 652 |
st.dataframe(pd.DataFrame([overlap]), use_container_width=True, hide_index=True)
|
| 653 |
elif overlap and "error" in overlap:
|
| 654 |
st.warning(f"Overlap query error: {overlap['error']}")
|
| 655 |
-
else:
|
| 656 |
-
st.caption("Please allow a few moments to load the data library..")
|
| 657 |
|
| 658 |
# --- Simulator raw rows ---
|
| 659 |
with st.expander("Simulator raw rows", expanded=False):
|
|
|
|
| 620 |
# ------------------------------------------------------------------
|
| 621 |
st.subheader("Data Inventory")
|
| 622 |
|
| 623 |
+
if st.button("Load Data Library", key="dbg_load_inventory"):
|
|
|
|
|
|
|
| 624 |
with st.expander("All database tables (row counts)", expanded=True):
|
| 625 |
inv_df = _query_db_inventory(conn)
|
| 626 |
if inv_df.empty:
|
|
|
|
| 650 |
st.dataframe(pd.DataFrame([overlap]), use_container_width=True, hide_index=True)
|
| 651 |
elif overlap and "error" in overlap:
|
| 652 |
st.warning(f"Overlap query error: {overlap['error']}")
|
|
|
|
|
|
|
| 653 |
|
| 654 |
# --- Simulator raw rows ---
|
| 655 |
with st.expander("Simulator raw rows", expanded=False):
|