API: Hot-Fix for the GetUserByToken Method

This commit is contained in:
Sagi Dayan 2015-06-16 23:08:37 +03:00
parent cd6d428dd8
commit 24d8252d07
2 changed files with 2 additions and 2 deletions

View file

@ -60,7 +60,7 @@ def getUserByToken(token):
403 - No User Found
"""
query = User.all()
query.filter("seToken = ", token)
query.filter("seToken =", token)
for u in query.run(limit=5):
return Response(response=u.to_JSON(),

View file

@ -12,7 +12,7 @@ class User(db.Model):
seToken = db.StringProperty(required=True)
avatar_url = db.StringProperty(required=True)
isFirstLogin = db.BooleanProperty(default=True)
campusName = db.StringProperty(required=True, default="")
campusName = db.StringProperty(required=True, default=" ")
campuses_id_list = db.StringListProperty(default=[])
classes_id_list = db.StringListProperty(default=[])