From 90909c7c2f028eec1553782be92e1aabd401da3b Mon Sep 17 00:00:00 2001 From: aranzaiger Date: Wed, 24 Jun 2015 01:16:51 +0300 Subject: [PATCH] fix #61 --- SE_API/CampusRoutes.py | 2 ++ SE_API/Email_Utils.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/SE_API/CampusRoutes.py b/SE_API/CampusRoutes.py index 3c25394..6f73148 100644 --- a/SE_API/CampusRoutes.py +++ b/SE_API/CampusRoutes.py @@ -83,7 +83,9 @@ def create_campus(token): return bad_request() send_create_campus_request(user.email, user.name, campus.title) + db.put(campus) notify_se_hub_campus_request(campus, campus.title) + db.delete(campus) return ok() diff --git a/SE_API/Email_Utils.py b/SE_API/Email_Utils.py index 683f7e8..2939cc7 100644 --- a/SE_API/Email_Utils.py +++ b/SE_API/Email_Utils.py @@ -105,7 +105,7 @@ def notify_se_hub_campus_request(campus, campus_name): message.body = """ a new Campus request - """+str(campus.to_JSON()) + """ + str(campus.to_JSON()) message.html = """