From 1545b61292d6898e333552c4a88a75d9e9f556ab Mon Sep 17 00:00:00 2001 From: SunFree <7934952@qq.com> Date: Mon, 6 May 2024 16:57:04 +0800 Subject: [PATCH] news --- __pycache__/dependencies.cpython-310.pyc | Bin 2646 -> 2646 bytes __pycache__/main.cpython-310.pyc | Bin 1884 -> 1884 bytes internal/__pycache__/__init__.cpython-310.pyc | Bin 125 -> 125 bytes internal/__pycache__/database.cpython-310.pyc | Bin 784 -> 784 bytes internal/__pycache__/models.cpython-310.pyc | Bin 1890 -> 1890 bytes internal/database.py | 1 - routers/__pycache__/__init__.cpython-310.pyc | Bin 124 -> 124 bytes .../__pycache__/typemanage.cpython-310.pyc | Bin 656 -> 660 bytes .../__pycache__/usermanage.cpython-310.pyc | Bin 1206 -> 1206 bytes routers/typemanage.py | 2 +- 10 files changed, 1 insertion(+), 2 deletions(-) diff --git a/__pycache__/dependencies.cpython-310.pyc b/__pycache__/dependencies.cpython-310.pyc index b6e9a00f046792dfb3a8200222178fca010a6c0b..a78ebeb11631c9c279ed19328eb824e2bdb282d8 100644 GIT binary patch delta 20 acmca6a!rIgpO=@50SK-rh;8Kd<^ljVF9ePN delta 20 acmca6a!rIgpO=@50SJB;n{MRx<^ljYzXc@# diff --git a/__pycache__/main.cpython-310.pyc b/__pycache__/main.cpython-310.pyc index f5f6e95949730d9cd870d313126cd723c7601f6f..242291203e30169aa9f6c3057cb3687a728d51e2 100644 GIT binary patch delta 20 acmcb^cZZKVpO=@50SKyeEjDrovI77##sp>n delta 20 acmcb^cZZKVpO=@50SLC2ns4L|WCs8^90ckB diff --git a/internal/__pycache__/__init__.cpython-310.pyc b/internal/__pycache__/__init__.cpython-310.pyc index 1e80e35e41926cb5aaf38b2c207ea96fec4e6d6c..394be32225196d4657ba4f39c51c08bcd7363353 100644 GIT binary patch delta 17 Xcmb=e<<95jpO=@50SFp&EjDt8vjYG%-~@gE delta 20 acmaFF_lS=>pO=@50SNkQ%r|m}vjYG)9t7I} 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 0001bfb6bad51b73e23b51378ae5d28ae06b8cf8..8cb2262f3f95cc1c9127245a7b31a4a774289aa4 100644 GIT binary patch delta 17 Xcmb=a;m+sfs|^o7gyjOs0m(&ly(&00HX? A`v3p{ delta 45 ucmbQjI)RlppO=@50SK1Ynx}2w$Scjr=?vr*ivWqq#*CX-*g%Zej4J`ucL|>W diff --git a/routers/__pycache__/usermanage.cpython-310.pyc b/routers/__pycache__/usermanage.cpython-310.pyc index 18d263cd8334a55c0777c3894a695c242facbff9..11b42764ec59380a8a5cba0b49aff35f13e4d7fa 100644 GIT binary patch delta 20 acmdnSxs8)MpO=@50SF>3^*3^_W&r>$Qv^u> delta 20 acmdnSxs8)MpO=@50SJB;n{MP@%>n>4Ed?n6 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