Spaces:
Running
Running
Upload 2 files
Browse files- router_items.py +1 -1
router_items.py
CHANGED
|
@@ -77,7 +77,7 @@ async def get_items(type: str = "tool", sort: str = "time", limit: int = 50): #
|
|
| 77 |
return {"status": "success", "data": filtered_items[:limit]}
|
| 78 |
|
| 79 |
@router.get("/api/creators")
|
| 80 |
-
async def get_creators(sort: str = "downloads", limit: int =
|
| 81 |
"""
|
| 82 |
获取创作者列表
|
| 83 |
🚀 P1性能优化:预构建 author->items 索引,避免 N+1 查询
|
|
|
|
| 77 |
return {"status": "success", "data": filtered_items[:limit]}
|
| 78 |
|
| 79 |
@router.get("/api/creators")
|
| 80 |
+
async def get_creators(sort: str = "downloads", limit: int = 1000):
|
| 81 |
"""
|
| 82 |
获取创作者列表
|
| 83 |
🚀 P1性能优化:预构建 author->items 索引,避免 N+1 查询
|