Fixed API Syntax Error Causing 500 Fix #74
This commit is contained in:
parent
699be13137
commit
fe397a2443
1 changed files with 2 additions and 2 deletions
|
@ -317,7 +317,7 @@ def getCampusesByUser(token,campusId):
|
|||
|
||||
|
||||
arr = []
|
||||
for i in user['courses_id_list']:
|
||||
for i in user.courses_id_list:
|
||||
course = Course.get_by_id(int(i))
|
||||
if course.courseName == campus.title:
|
||||
arr.append(dict(json.loads(course.to_JSON())))
|
||||
|
@ -327,7 +327,7 @@ def getCampusesByUser(token,campusId):
|
|||
status=200,
|
||||
mimetype="application/json")
|
||||
else:
|
||||
return Response(response=[],
|
||||
return Response(response='[]',
|
||||
status=200,
|
||||
mimetype="application/json")
|
||||
|
||||
|
|
Loading…
Reference in a new issue