API Hot Fix. fixed syntax Error

This commit is contained in:
Sagi Dayan 2015-06-26 14:54:16 +03:00
parent 9ddc035443
commit 0ccc8ba1dd

View file

@ -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())))