Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cambios Para Elecciones Presidenciales #1

Open
wants to merge 19 commits into
base: main
Choose a base branch
from
Open

Conversation

Dofas1
Copy link
Collaborator

@Dofas1 Dofas1 commented Jun 27, 2021

Se limita la cantidad de candidatos a 20, se entrega una salida según candidatos activos, es decir si estan solo 11 activos, la salida será con los resultados de estos 11, el ordenamiento es DisL+DisC, la salida tiene el formato parecido, solo que ahora no existe peor candidato y se muestran todos los candidatos de la lista y sus porcentajes de cercanía

Dofas1 and others added 19 commits June 27, 2021 18:01
la salida estaba entes ordenada como una salida de String
{
  name: 'YoMismo',
  informacion: {
    N_Candidatos: '40',
    Cupos: '5',
    Poblacion_del_distrito: '11.880',
    Distrito: '19'
  },
  coherencia: 'TIENES AFINICDAD CON EL PACTO : APRUEBO DIGNIDAD', //Cambio Importante
  mejoresCandidatos: [
    {
      Nombre1: 'Gabriel�Boric',
      AporteServel: ' 23.900.000.0 ',
      NAportantes: '456',
      GrandesAportes: '',
      Lista: 'APRUEBO DIGNIDAD',
      Partido: 'CS + RD',
      Web: 'https://boricpresidente.cl/',
      Codigo_candidato: '1',
      Porcentaje_Cercania: '94.8%'
    },
    {
      Nombre1: 'Daniel Jadue',
      AporteServel: ' 11.000.000.0 ',
      NAportantes: '92',
      GrandesAportes: '',
      Lista: 'APRUEBO DIGNIDAD',
      Partido: 'PC',
      Web: 'https://www.danieljaduepresidente.cl/',
      Codigo_candidato: '2',
      Porcentaje_Cercania: '101.5%'
    },
    {
      Nombre1: 'Pamela Jiles',
      AporteServel: ' 1.000.0 ',
      NAportantes: '1',
      GrandesAportes: '',
      Lista: 'PARTIDO HUMANISTA',
      Partido: 'PH',
      Web: '',
      Codigo_candidato: '3',
      Porcentaje_Cercania: '79.5%'
    },
    {
      Nombre1: 'Paula Narv�ez',
      AporteServel: ' 1.000.0 ',
      NAportantes: '1',
      GrandesAportes: '',
      Lista: 'UNIDAD CONSTITUYENTE',
      Partido: 'PS + PPD',
      Web: '',
      Codigo_candidato: '4',
      Porcentaje_Cercania: '80.9%'
    },
    {
      Nombre1: 'Carlos Maldonado',
      AporteServel: ' 1.000.0 ',
      NAportantes: '1',
      GrandesAportes: '',
      Lista: 'UNIDAD CONSTITUYENTE',
      Partido: 'PR',
      Web: '',
      Codigo_candidato: '5',
      Porcentaje_Cercania: '80.3%'
    },
    {
      Nombre1: 'Yasna Provoste',
      AporteServel: ' 1.000.0 ',
      NAportantes: '1',
      GrandesAportes: '',
      Lista: 'UNIDAD CONSTITUYENTE',
      Partido: 'DC',
      Web: '',
      Codigo_candidato: '6',
      Porcentaje_Cercania: '76.3%'
    },
    {
      Nombre1: 'Mario Desbordes',
      AporteServel: ' 28.700.000.0 ',
      NAportantes: '78',
      GrandesAportes: '',
      Lista: 'CHILE VAMOS',
      Partido: 'RN',
      Web: 'https://desbordes.cl/',
      Codigo_candidato: '7',
      Porcentaje_Cercania: '52.3%'
    },
    {
      Nombre1: 'Sebasti�n Sichel',
      AporteServel: ' 96.600.000.0 ',
      NAportantes: '119',
      GrandesAportes: 'Candidato fuertemente financiado',
      Lista: 'CHILE VAMOS',
      Partido: 'IND ',
      Web: '',
      Codigo_candidato: '8',
      Porcentaje_Cercania: '51.9%'
    },
    {
      Nombre1: 'Joaqu�n Lav�n',
      AporteServel: ' 66.300.000.0 ',
      NAportantes: '35',
      GrandesAportes: 'Candidato fuertemente financiado',
      Lista: 'CHILE VAMOS',
      Partido: 'UDI',
      Web: '',
      Codigo_candidato: '9',
      Porcentaje_Cercania: '48.0%'
    },
    {
      Nombre1: 'Ignacio Briones',
      AporteServel: ' 100.900.000.0 ',
      NAportantes: '161',
      GrandesAportes: 'Candidato fuertemente financiado',
      Lista: 'CHILE VAMOS',
      Partido: 'EVO',
      Web: '',
      Codigo_candidato: '10',
      Porcentaje_Cercania: '48.4%'
    },
    {
      Nombre1: 'Jos� Kast',
      AporteServel: ' 1.000.0 ',
      NAportantes: '1',
      GrandesAportes: '',
      Lista: 'REP',
      Partido: 'REP',
      Web: '',
      Codigo_candidato: '11',
      Porcentaje_Cercania: '40.5%'
    }
  ]
}
- Update questions 27.
- Fix question 11
- Fix any questions.
- Add background random.
- Update database Candidates.
- Add new format in the input web.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants