ZHIWEI666 commited on
Commit
64405a9
·
verified ·
1 Parent(s): 57fd107

Upload 2 files

Browse files
Files changed (1) hide show
  1. 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 = 20):
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 查询