PhotonQuantum / pysjtu

The Python iSJTU client for Humans.
https://pysjtu.readthedocs.io/en/latest/
GNU General Public License v3.0
44 stars 3 forks source link

Incorrect exam names #4

Closed PhotonQuantum closed 4 years ago

PhotonQuantum commented 4 years ago
>>> c.exam(2019,1)
[<Exam "2019-2020-2一专期末考试" location=上院204 datetime=2020-06-22(15:30-17:30)>, 
<Exam "2019-2020-2一专期末考试" location=上院304 datetime=2020-06-23(08:30-10:30)>, 
<Exam "2019-2020-2一专期末考试" location=上院305 datetime=2020-07-01(08:30-10:30)>, 
<Exam "2019-2020-2一专期末考试" location=上院203 datetime=2020-07-02(08:30-10:30)>]
>>> c.exam(2019,1)[0].course_name
'基本电路理论'
PhotonQuantum commented 4 years ago

It seems that it's the intended behavior. The exam name is "2019-2020-2一专期末考试" indeed.

However, the string representation is quite misleading.

PhotonQuantum commented 4 years ago

Fixed.