open-polito / open-polito-api

An open source, unofficial API for Politecnico di Torino.
GNU Affero General Public License v3.0
7 stars 0 forks source link

user.ts: extra_courses always empty because of wrong check #6

Closed robertolaru closed 2 years ago

robertolaru commented 2 years ago

vote_data.data.altri_corsi is an Object, with years as keys (see #4). It is not an Array. The code therefore always returns an empty array.