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

Rota que sincroniza os enrollments #71

Open
felipe-augusto opened this issue Mar 14, 2020 · 1 comment
Open

Rota que sincroniza os enrollments #71

felipe-augusto opened this issue Mar 14, 2020 · 1 comment

Comments

@felipe-augusto
Copy link
Member

ROTA: https://api.ufabcnext.com/v1/private/enrollments/sync/pdf?access_key=XXXX

payload:

let { hash, year, quad } = context.body

{
  link: 'http://prograd.ufabc.edu.br/pdf/turmas_salas_docentes_sa_2018.3.pdf',

  // renomeia as colunas para o que vai ser inserido no banco
  rename: [
    { from: 'TURMA', as: 'nome' },
    { from: 'DOCENTE TEORIA', as: 'teoria' },
    { from: 'DOCENTE PRÁTICA', as: 'pratica' }

    { from: 'RA', as: 'ra' },
    { from: 'TURMA', as: 'nome' },
  ],

  // apenas usado em PDF
  pickColumns: [{
    position: 0,
    name: 'ra'
  }],

  // variaveis que tem que mandar/mudar se for PDF
  numberOfColumns: 6,
  startPage: 0,
  rowDifference: 5,
  allowedPercentage: 0.3
}
@felipe-augusto felipe-augusto added this to the Painel Administrativo milestone Mar 14, 2020
@Joabesv
Copy link
Member

Joabesv commented Nov 21, 2023

@RenanLorijola cabe isso aqui naquela /admin (ver em dezembro, por ai)

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

No branches or pull requests

2 participants