diff --git a/__pycache__/dependencies.cpython-310.pyc b/__pycache__/dependencies.cpython-310.pyc index b6e9a00..a78ebeb 100644 Binary files a/__pycache__/dependencies.cpython-310.pyc and b/__pycache__/dependencies.cpython-310.pyc differ diff --git a/__pycache__/main.cpython-310.pyc b/__pycache__/main.cpython-310.pyc index f5f6e95..2422912 100644 Binary files a/__pycache__/main.cpython-310.pyc and b/__pycache__/main.cpython-310.pyc differ diff --git a/internal/__pycache__/__init__.cpython-310.pyc b/internal/__pycache__/__init__.cpython-310.pyc index 1e80e35..394be32 100644 Binary files a/internal/__pycache__/__init__.cpython-310.pyc and b/internal/__pycache__/__init__.cpython-310.pyc differ diff --git a/internal/__pycache__/database.cpython-310.pyc b/internal/__pycache__/database.cpython-310.pyc index 341a062..2c0218f 100644 Binary files a/internal/__pycache__/database.cpython-310.pyc and b/internal/__pycache__/database.cpython-310.pyc differ diff --git a/internal/__pycache__/models.cpython-310.pyc b/internal/__pycache__/models.cpython-310.pyc index f91df9a..782f6da 100644 Binary files a/internal/__pycache__/models.cpython-310.pyc and b/internal/__pycache__/models.cpython-310.pyc differ diff --git a/internal/database.py b/internal/database.py index 81983df..5fae332 100644 --- a/internal/database.py +++ b/internal/database.py @@ -1,5 +1,4 @@ import pymysql - DB_CONFIG = { "host": "111.229.38.129", "user": "root", diff --git a/routers/__pycache__/__init__.cpython-310.pyc b/routers/__pycache__/__init__.cpython-310.pyc index 0001bfb..8cb2262 100644 Binary files a/routers/__pycache__/__init__.cpython-310.pyc and b/routers/__pycache__/__init__.cpython-310.pyc differ diff --git a/routers/__pycache__/typemanage.cpython-310.pyc b/routers/__pycache__/typemanage.cpython-310.pyc index a0b8d40..3d7f162 100644 Binary files a/routers/__pycache__/typemanage.cpython-310.pyc and b/routers/__pycache__/typemanage.cpython-310.pyc differ diff --git a/routers/__pycache__/usermanage.cpython-310.pyc b/routers/__pycache__/usermanage.cpython-310.pyc index 18d263c..11b4276 100644 Binary files a/routers/__pycache__/usermanage.cpython-310.pyc and b/routers/__pycache__/usermanage.cpython-310.pyc differ diff --git a/routers/typemanage.py b/routers/typemanage.py index 92d554f..a3e1cfa 100644 --- a/routers/typemanage.py +++ b/routers/typemanage.py @@ -6,7 +6,7 @@ router=APIRouter( ) @router.get("/typelist",response_model=list[TypeList]) -def read_type_all(_:User=Depends(get_current_active_user)): +async def read_type_all(_:User=Depends(get_current_active_user)): select_query="SELECT blogid,typename,descr FROM types;" type_all=execute_query(select_query,fetchall=True) return type_all