File size: 686 Bytes
08c979a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25

def search(clave, d):
   i = 0
   for key in d:
      if key == clave:
         return i
      i+=1


def Listar_Criterios(st,controller):
    l = []
    st.title("LISTA DE CRITERIOS ")
    st.subheader("Selecciona el nombre del bloque de criterios a listar")
    for key in controller.criterios:
        l.append(key)
    seleccion = st.selectbox("Seleccione:", l)
    index = search(seleccion, l)
    contador = 0
    for key in controller.criterios:
        if (contador == index):
            st.title("Bloque "+key)
            aux = controller.criterios.get(key)
            for key2 in aux:
                st.subheader(key2+ " - "+str(aux.get(key2))+" %")
        contador += 1