From 59663af67d7ae78ff9fdfde5cad26bc9da9b30ea Mon Sep 17 00:00:00 2001 From: aranzaiger Date: Mon, 15 Jun 2015 19:10:38 +0300 Subject: [PATCH] changed create campus dunc to send mails --- SE_API/CampusRoutes.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/SE_API/CampusRoutes.py b/SE_API/CampusRoutes.py index 8c8b02e..11af4b3 100644 --- a/SE_API/CampusRoutes.py +++ b/SE_API/CampusRoutes.py @@ -20,6 +20,7 @@ from models.Campus import Campus #Validation Utils Libs from SE_API.Validation_Utils import * from SE_API.Respones_Utils import * +from SE_API.Email_Utils import * @@ -78,11 +79,10 @@ def create_campus(token): except Exception: return bad_request() - db.put(campus) - db.save - return Response(response=campus.to_JSON(), - status=201, - mimetype="application/json") + + send_create_campus_request(user.email, user.name, campus.title) + notify_se_hub_campus_request(campus, campus.title) + return ok()