Spaces:
Sleeping
Sleeping
Commit
·
d443075
1
Parent(s):
7298c80
Allow up to 40 candidate
Browse files- app/routers/search.py +2 -2
app/routers/search.py
CHANGED
|
@@ -48,5 +48,5 @@ async def search_books(q: str = Query(...)):
|
|
| 48 |
if dropped:
|
| 49 |
logger.debug(f"🚮 truncated titles: {dropped[:10]}")
|
| 50 |
|
| 51 |
-
# Limit to
|
| 52 |
-
return merged[:
|
|
|
|
| 48 |
if dropped:
|
| 49 |
logger.debug(f"🚮 truncated titles: {dropped[:10]}")
|
| 50 |
|
| 51 |
+
# Limit to 40 best matches
|
| 52 |
+
return merged[:40]
|