|
@@ -48,7 +48,7 @@ async def insert_school(
|
|
|
@classes.post("/insert_class")
|
|
|
async def insert_class(
|
|
|
id: int = Form(default=0),
|
|
|
- name: int = Form(default=''),
|
|
|
+ name: str = Form(default=''),
|
|
|
school_id: int = Form(default=''),
|
|
|
category: str = Form(default=''),
|
|
|
introduction: str = Form(default=''),
|
|
@@ -285,7 +285,6 @@ async def search_class(id: int):
|
|
|
"end_time": class_obj.end_time,
|
|
|
"location": class_obj.location,
|
|
|
"lecturer": class_obj.lecturer,
|
|
|
- "organizer": class_obj.organizer,
|
|
|
"contact": class_obj.contact,
|
|
|
"content": class_obj.content,
|
|
|
"URL": class_obj.URL,
|
|
@@ -338,7 +337,6 @@ async def get_class():
|
|
|
"end_time": class_obj.end_time,
|
|
|
"location": class_obj.location,
|
|
|
"lecturer": class_obj.lecturer,
|
|
|
- "organizer": class_obj.organizer,
|
|
|
"contact": class_obj.contact,
|
|
|
"content": class_obj.content,
|
|
|
"URL": class_obj.URL,
|