Skip to content

Commit

Permalink
Merge pull request #143 from NIAEFEUP/fix/student-request-metadata-na…
Browse files Browse the repository at this point in the history
…ming

Naming of student metadata in a course unit is now according to what is expected in the frontend
  • Loading branch information
tomaspalma authored Jan 31, 2025
2 parents b9b4ed5 + d424087 commit f8370a3
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ def get(self, request, course_unit_id):
"classes": list(ClassController.get_classes(course_unit_id)),
"students": [
{
"codigo": student.get("codigo"),
"nome": student.get("nome"),
"mecNumber": student.get("codigo"),
"name": student.get("nome"),
"classInfo":
ClassSerializer(StudentController.student_class(student.get("codigo"), course_unit_id)).data
if ClassSerializer(StudentController.student_class(student.get("codigo"), course_unit_id)).data.get("name") != ""
Expand Down

0 comments on commit f8370a3

Please sign in to comment.