diff --git a/pyjiit/wrapper.py b/pyjiit/wrapper.py index e97208f..b1d4885 100644 --- a/pyjiit/wrapper.py +++ b/pyjiit/wrapper.py @@ -480,8 +480,9 @@ def get_subject_choices(self, semester: Semester): ENDPOINT = "/studentchoiceprint/getsubjectpreference" payload_dict = { "instituteid": self.session.instituteid, - "studentid": self.session.memberid, + "clientid": self.session.clientid, "registrationid": semester.registration_id, } - resp = self.__hit("POST", API + ENDPOINT, json=payload_dict, authenticated=True) + payload = serialize_payload(payload_dict) + resp = self.__hit("POST", API + ENDPOINT, json=payload, authenticated=True) return resp["response"]