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 = """