fix(backend): fix search repo regression

This commit is contained in:
12f23eddde 2022-07-16 12:13:05 +00:00
parent a7c19fda30
commit 6c4e59fca2
1 changed files with 2 additions and 2 deletions

View File

@ -169,8 +169,8 @@ def search_repo_detail(
.order_by("$text_score")
.limit(10)
)
if repos_q.count() == 0:
raise HTTPException(status_code=404, detail="Repository not found")
# if repos_q.count() == 0:
# raise HTTPException(status_code=404, detail="Repository not found")
repos_search = [RepoDetail(**repo.to_mongo()) for repo in repos_q]
if user: # append to user search history