diff --git a/SE_API/CourseRoutes.py b/SE_API/CourseRoutes.py
index 5713db2..51a54a4 100644
--- a/SE_API/CourseRoutes.py
+++ b/SE_API/CourseRoutes.py
@@ -42,9 +42,9 @@ def create_course(token):
{
'courseName': 'Advance Math',
'campusName': 'JCE',
- 'startDate': '2015-14-3'
- 'endDate': '2015-29-6'
- 'taskFlag': 'False'
+ 'startDate': {'year': 2015, 'month' : 4, 'day' : 3}
+ 'endDate': {'year': 2016, 'month' : 5, 'day' : 14}
+ 'taskFlag': false
}
@@ -67,8 +67,7 @@ def create_course(token):
try:
payload = json.loads(request.data)
except Exception as e:
- return bad_request(e)
-
+ return bad_request()
try:
start_date = datetime.date(payload['startDate']['year'],payload['startDate']['month'],payload['startDate']['day'])