diff --git a/SE_API/UserRoutes.py b/SE_API/UserRoutes.py index 56f05e4..a448ae6 100644 --- a/SE_API/UserRoutes.py +++ b/SE_API/UserRoutes.py @@ -269,9 +269,6 @@ def getUserByToken(token): mimetype="application/json") # Real response! - - - return no_content("No User Found") diff --git a/models/User.py b/models/User.py index 3aaa1cf..d3bb545 100644 --- a/models/User.py +++ b/models/User.py @@ -15,6 +15,7 @@ class User(db.Model): campusName = db.StringProperty(required=True, default=" ") campuses_id_list = db.StringListProperty(default=[]) courses_id_list = db.StringListProperty(default=[]) + projects_id_list = db.StringListProperty(default=[]) def to_JSON(self): data = {'username' : self.username, @@ -25,6 +26,7 @@ class User(db.Model): 'isFirstLogin' : self.isFirstLogin, 'campusName': self.campusName, 'campuses_id_list': self.campuses_id_list, - 'courses_id_list': self.courses_id_list + 'courses_id_list': self.courses_id_list, + 'projects_id_list': self.projects_id_list } return json.dumps(data)