From abd8ec4c77324ac85913d151931356be28597b41 Mon Sep 17 00:00:00 2001 From: Tashif Ahmad Khan Date: Fri, 14 Nov 2025 01:32:46 +0530 Subject: [PATCH] fix: updated subject preference endpoint coz api changes --- pyjiit/wrapper.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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"]