fix: 修复了重名无法查询api的bug

This commit is contained in:
RTAkland
2022-12-22 18:26:32 +08:00
parent 95a507eb9e
commit 9646c5321e
1 file changed
+1 -1
+1 -1
View File
@@ -33,7 +33,7 @@ async def query(name: str):
return response
@api.get('/query/all')
@api.get('/query/alldata')
async def query_all(limit: int = 30):
result = await Database().query_all()
data = result[:limit]