Closed rrroyal closed 5 years ago
Potential fix in #15
Please try to test #16. If still doesn't work, please tell me more details. (vulcan-api
version, does Dzienniczek+
app show any grades, etc.)
The problem was that Kategoria
had the value missing:
{
"Id": <redacted>,
"Pozycja": 1,
"PrzedmiotPozycja": 5,
"IdPrzedmiot": <redacted>,
"IdKategoria": 0,
"Wpis": "<redacted>",
"Wartosc": <redacted>,
"WagaModyfikatora": None,
"WagaOceny": <redacted>,
"Licznik": None,
"Mianownik": None,
"Komentarz": None,
"Waga": "<redacted>",
"Opis": "",
"DataUtworzenia": <redacted>,
"DataUtworzeniaTekst": "<redacted>",
"DataModyfikacji": <redacted>,
"DataModyfikacjiTekst": "<redacted>",
"IdPracownikD": <redacted>,
"IdPracownikM": <redacted>,
"Przedmiot": {
"Id": <redacted>,
"Nazwa": "<redacted>",
"Kod": "<redacted>",
"Aktywny": True,
"Pozycja": 1000
},
"Kategoria": None, // !!!
"Pracownik": {
"Id": 105,
"Imie": "<redacted>",
"Nazwisko": "<redacted>",
"Kod": "<redacted>",
"Aktywny": True,
"Nauczyciel": False,
"LoginId": <redacted>
}
}
Ocena
object, but before that, it checks if the value exists.Fixed by #17
When trying to call
klient.oceny()
, Python 3.7 throws this error:When trying to debug this, the problem lies in
_vulcan.py
file, inoceny(self)
function - in the return:The whole
ocena
object is good, the problem lies in the return statement. Unfortunately, I'm not that experienced in python, so I can't really fix it myself (but I will try anyways :P)