Skip to content

Commit

Permalink
Merge pull request EGCETSII#13 from Alegomcab1/master
Browse files Browse the repository at this point in the history
Feature Declaracion de variables y asignacion
  • Loading branch information
Alegomcab1 authored Jan 4, 2021
2 parents 41b11cd + 79e66cb commit d68d562
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 d68d562

Please sign in to comment.