API Hot Fix. fixed syntax Error
This commit is contained in:
parent
9ddc035443
commit
0ccc8ba1dd
1 changed files with 1 additions and 1 deletions
|
@ -192,7 +192,7 @@ def getCampusesByUser(token):
|
|||
return bad_request("Bad user Token")
|
||||
|
||||
arr = []
|
||||
for i in user['campuses_id_list']:
|
||||
for i in user.campuses_id_list:
|
||||
campus = Campus.get_by_id(int(i))
|
||||
arr.append(dict(json.loads(campus.to_JSON())))
|
||||
|
||||
|
|
Loading…
Reference in a new issue