NIAEFEUP / uni

Mobile app designed to help students of the University of Porto to manage their academic life.
GNU General Public License v3.0
45 stars 15 forks source link

Horário em Janeiro 2021 não aparece #291

Closed reeckset closed 3 years ago

reeckset commented 3 years ago

Na semana de 11 de janeiro a 17 de janeiro de 2021, o horário não está a ser apresentado, mesmo para alunos que tenham aulas nessa semana

limwa commented 3 years ago

O problema já está a acontecer desde o início do ano civil. Pelo que consegui perceber, o problema está no endpoint do SIGARRA que a uni utiliza para obter o horário dos estudantes. O endpoint está a devolver uma lista vazia.

limwa commented 3 years ago

By trying multiple dates in the endpoint that is used by uni to get the user's schedule, I was able to pinpoint that this issue started happening on the 20th December 2020. https://sigarra.up.pt/feup/pt/mob_hor_geral.estudante?pv_codigo=<your student number>&pv_semana_ini=20201219&pv_semana_fim=20201231 has my schedule, but https://sigarra.up.pt/feup/pt/mob_hor_geral.estudante?pv_codigo=<your student number>&pv_semana_ini=20201220&pv_semana_fim=20201231 does not.

SocksDevil commented 3 years ago

It would seem this is somewhat related to the endpoint quality of the results, which makes it quite tricky to solve :/

SocksDevil commented 3 years ago

It would seem the API is ,for now, broken, I'm developing a fix for this, to resort back to our old schedule parser.

limwa commented 3 years ago

Hi there! The API has been fixed. https://sigarra.up.pt/feup/pt/mob_hor_geral.estudante?pv_codigo=<your student number>&pv_semana_ini=20210313&pv_semana_fim=20210320 is returning a valid schedule. Furthermore, the links I had sent before are no longer returning empty lists.

SocksDevil commented 3 years ago

Hey! Back when we figured the API itself was broken, we had sent an email to FEUP. It would seem this mail was finally fruitful!