Update page_files/Categorized_Search.py
Browse files485 unmodified lines48648748848949049149290 unmodified lines58358458558658758858959059159259359459559659759859960060160260390 unmodified lines694695696697698699700701485 unmodified linesfiltered_meta = filtered_meta.reset_index(drop=True)PAGE_SIZE = 5total = len(filtered_meta)total_pages = max(1, (total + PAGE_SIZE - 1) // PAGE_SIZE)st.session_state.current_page = min(st.session_state.current_page, total_pages - 1)90 unmodified linesst.session_state.current_page = 0st.rerun()st.markdown("<div class='aim-sec'>📋 Property Types</div>", unsafe_allow_html=True)selected_props = []with st.container(height=480):for index, section in enumerate(all_sections):key = f"prop_check_{index}"if key not in st.session_state:st.session_state[key] = section in st.session_state.selected_propsif st.checkbox(section, key=key):selected_props.append(section)if selected_props != st.session_state.selected_props:st.session_state.selected_props = selected_propsst.session_state.current_page = 0st.rerun()if st.button("🔎 Inspect",90 unmodified linescolumns=["Select", "Material Name", "Abbreviation", "Class", "Actions"])for _ in range(2):table_df.loc[len(table_df)] = [False, "", "", "", ""]editor_df = st.data_editor(table_df,485 unmodified lines48648748848949049149290 unmodified lines58358458558658758858959059159259359459559659759859960060160260390 unmodified lines694695696697698699700485 unmodified linesfiltered_meta = filtered_meta.reset_index(drop=True)PAGE_SIZE = 50total = len(filtered_meta)total_pages = max(1, (total + PAGE_SIZE - 1) // PAGE_SIZE)st.session_state.current_page = min(st.session_state.current_page, total_pages - 1)90 unmodified linesst.session_state.current_page = 0st.rerun()#st.markdown("<div class='aim-sec'>📋 Property Types</div>", unsafe_allow_html=True)#selected_props = []#with st.container(height=480):# for index, section in enumerate(all_sections):# key = f"prop_check_{index}"# if key not in st.session_state:# st.session_state[key] = section in st.session_state.selected_props# if st.checkbox(section, key=key):# selected_props.append(section)#if selected_props != st.session_state.selected_props:# st.session_state.selected_props = selected_props# st.session_state.current_page = 0# st.rerun()if st.button("🔎 Inspect",90 unmodified linescolumns=["Select", "Material Name", "Abbreviation", "Class", "Actions"])editor_df = st.data_editor(table_df,
page_files/Categorized_Search.py+15-16