async in non async function fix.
This commit is contained in:
parent
363701e0ee
commit
2e8533a3f9
@ -1029,7 +1029,7 @@ def meili_catalog_search(q: str, limit: int = 10) -> List[dict]:
|
||||
try:
|
||||
#res = idx.search(q, {"limit": limit})
|
||||
# Gebruik ALTIJD de injectie:
|
||||
res = await meili_search_fn(
|
||||
res = meili_search_fn(
|
||||
q,
|
||||
limit=limit,
|
||||
filter={"repo_full": st.owner_repo, "branch": st.branch_base}
|
||||
@ -1565,7 +1565,7 @@ def meili_search(owner_repo: Optional[str], branch: str, q: str, limit: int = 10
|
||||
#idx = cli.index(meili_index_name(owner_repo, branch))
|
||||
#res = idx.search(q, {"limit": limit})
|
||||
# Gebruik ALTIJD de injectie:
|
||||
res = await meili_search_fn(
|
||||
res = meili_search_fn(
|
||||
q,
|
||||
limit=limit,
|
||||
filter={"repo_full": st.owner_repo, "branch": st.branch_base}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user