Prechádzať zdrojové kódy

Merge branch 'master' of http://git.choozmo.com:3000/zooey/ntcri

conrad 1 rok pred
rodič
commit
dab120239b
1 zmenil súbory, kde vykonal 1 pridanie a 3 odobranie
  1. 1 3
      app/api/classes.py

+ 1 - 3
app/api/classes.py

@@ -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,