Archived
fix: 修复了重名无法查询api的bug
This commit is contained in:
1 file changed
+1
-1
+1
-1
@@ -33,7 +33,7 @@ async def query(name: str):
|
|||||||
return response
|
return response
|
||||||
|
|
||||||
|
|
||||||
@api.get('/query/all')
|
@api.get('/query/alldata')
|
||||||
async def query_all(limit: int = 30):
|
async def query_all(limit: int = 30):
|
||||||
result = await Database().query_all()
|
result = await Database().query_all()
|
||||||
data = result[:limit]
|
data = result[:limit]
|
||||||
|
|||||||
Reference in New Issue
Block a user