Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
@@ -12,7 +12,7 @@ from fastapi_cache.backends.inmemory import InMemoryBackend
|
|
12 |
# from fastapi_cache.coder import PickleCoder
|
13 |
from fastapi_cache.decorator import cache
|
14 |
|
15 |
-
from typing import Union, Optional, Type
|
16 |
from utils.student import Student
|
17 |
from utils.instructor import Instructor
|
18 |
from utils.course import Course
|
@@ -127,7 +127,7 @@ ResultItem = Union[OneResultItem, BulkResultItem]
|
|
127 |
class EndpointResponse(SQLModel):
|
128 |
execution_msg: str
|
129 |
execution_code: int
|
130 |
-
result:
|
131 |
|
132 |
|
133 |
class ErrorResponse(SQLModel):
|
|
|
12 |
# from fastapi_cache.coder import PickleCoder
|
13 |
from fastapi_cache.decorator import cache
|
14 |
|
15 |
+
from typing import Union, Optional, Type, Any
|
16 |
from utils.student import Student
|
17 |
from utils.instructor import Instructor
|
18 |
from utils.course import Course
|
|
|
127 |
class EndpointResponse(SQLModel):
|
128 |
execution_msg: str
|
129 |
execution_code: int
|
130 |
+
result: Any
|
131 |
|
132 |
|
133 |
class ErrorResponse(SQLModel):
|