From 71939c1b1cc718454ebefed9d916befd6b64b46e Mon Sep 17 00:00:00 2001 From: aranzaiger Date: Sun, 2 Aug 2015 16:43:56 +0300 Subject: [PATCH] added value to componenets and submitTask method --- SE_API/TaskRoutes.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/SE_API/TaskRoutes.py b/SE_API/TaskRoutes.py index 12965d5..9b0e36a 100644 --- a/SE_API/TaskRoutes.py +++ b/SE_API/TaskRoutes.py @@ -209,10 +209,10 @@ def submitTask(token, taskId, ownerId): bad_request("bad Task id") if task.isPersonal: - if User.get_by_id(ownerId) is None: + if User.get_by_id(int(ownerId)) is None: return bad_request("no such user") else: - if Project.get_by_id(ownerId) is None: + if Project.get_by_id(int(ownerId)) is None: return bad_request("no such project") @@ -692,10 +692,10 @@ def getTaskById(token, taskId, ownerId): if task is None: return bad_request("Bad Task id") if task.isPersonal: - if User.get_by_id(ownerId) is None: + if User.get_by_id(int(ownerId)) is None: return bad_request("no such user") else: - if Project.get_by_id(ownerId) is None: + if Project.get_by_id(int(ownerId)) is None: return bad_request("no such project") task = json.loads(task.to_JSON())