Skip to content

Commit

Permalink
Feature Declaracion de variables y asignacion
Browse files Browse the repository at this point in the history
Declaracion de variables iniciales y almacenamiento de hombres y mujeres en dos listas
  • Loading branch information
Alegomcab1 committed Jan 4, 2021
1 parent 257b8fe commit 79e66cb
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions decide/postproc/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,34 @@ def identity(self, options):
out.sort(key=lambda x: -x['postproc'])
return Response(out)


def paridad(self, options):
out = []

for opt in options:
out.append({
**opt,
'paridad': [],
})

for i in out:
escanios = i['postproc']
candidatos = i['candidatos']
listaHombres = []
listaMujeres = []
h=0
m=0
paridad = True

for candi in candidatos:
if candi['sexo'] == 'hombre':
listaHombres.append(cand)
elif candi['sexo'] == 'mujer':
listaMujeres.append(cand)


return out

def post(self, request):
"""
* type: IDENTITY | EQUALITY | WEIGHT
Expand Down

0 comments on commit 79e66cb

Please sign in to comment.