From 0ae7101e30b2e300e74b4ef390443360b1d1232c Mon Sep 17 00:00:00 2001 From: aranzaiger Date: Wed, 24 Jun 2015 20:01:55 +0300 Subject: [PATCH] added projects_id_list propery --- SE_API/UserRoutes.py | 3 --- models/User.py | 4 +++- 2 files changed, 3 insertions(+), 4 deletions(-) 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)