async in non async function fix.

This commit is contained in:
admin 2025-11-27 13:39:24 +01:00
parent 363701e0ee
commit 2e8533a3f9

View File

@ -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}