From aecc0a2d30f8436b11a10ee8dbabc60d5ac2d32e Mon Sep 17 00:00:00 2001 From: alephcero Date: Thu, 14 Nov 2024 10:24:59 -0300 Subject: [PATCH] Fixes #181 --- urbantrips/run_interactive_tools.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/urbantrips/run_interactive_tools.py b/urbantrips/run_interactive_tools.py index eb1738c..9b8cb1e 100644 --- a/urbantrips/run_interactive_tools.py +++ b/urbantrips/run_interactive_tools.py @@ -31,6 +31,7 @@ def cargar_tabla_sql(tabla_sql, tipo_conexion="dash", query=""): st.session_state.configs = utils.leer_configs_generales() configs = st.session_state.configs +h3_legs_res = configs["resolucion_h3"] alias = configs["alias_db_data"] use_branches = configs["lineas_contienen_ramales"] metadata_lineas = cargar_tabla_sql("metadata_lineas", "insumos")[ @@ -123,7 +124,9 @@ def seleccionar_linea(nombre_columna, key_input, key_select, branch_key, conn_in col1, col2, col3 = st.columns([1, 3, 3]) with col1: - h3_res_comp = st.slider("Resolución H3", min_value=7, max_value=9, value=8) + h3_res_comp = st.slider( + "Resolución H3", min_value=7, max_value=h3_legs_res, value=h3_legs_res + ) if st.button("Comparar líneas"): for i in [1, 2]: