Skip to content

Commit

Permalink
chore: pr recommendation
Browse files Browse the repository at this point in the history
  • Loading branch information
andrey-canon committed Jul 29, 2024
1 parent d5c6534 commit ce30e0f
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions eox_nelp/api_clients/pearson_engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,14 +93,13 @@ def import_candidate_demographics(self, user, **kwargs):
dict: The response from Pearson Engine API.
"""
path = "rti/api/v1/candidate-demographics/"

candidate = {
data = {
"user_data": self._get_user_data(user),
"platform_data": self._get_platform_data(),
**kwargs
}

return self.make_post(path, candidate)
return self.make_post(path, data)

def import_exam_authorization(self, user, exam_id, **kwargs):
"""
Expand All @@ -114,13 +113,13 @@ def import_exam_authorization(self, user, exam_id, **kwargs):
dict: The response from Pearson Engine API.
"""
path = "rti/api/v1/exam-authorization/"
exam_data = {
data = {
"user_data": {"username": user.username},
"exam_data": self._get_exam_data(exam_id),
**kwargs
}

return self.make_post(path, exam_data)
return self.make_post(path, data)

def real_time_import(self, user, exam_id, **kwargs):
"""
Expand Down

0 comments on commit ce30e0f

Please sign in to comment.