From 0ccc8ba1dd9e809b9c622ccdeb4e8842ac42e84b Mon Sep 17 00:00:00 2001 From: Sagi Dayan Date: Fri, 26 Jun 2015 14:54:16 +0300 Subject: [PATCH] API Hot Fix. fixed syntax Error --- SE_API/CampusRoutes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SE_API/CampusRoutes.py b/SE_API/CampusRoutes.py index c49fb3e..594975c 100644 --- a/SE_API/CampusRoutes.py +++ b/SE_API/CampusRoutes.py @@ -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())))