Skip to content

Commit

Permalink
Fix bug in search logic
Browse files Browse the repository at this point in the history
  • Loading branch information
bkis committed Sep 18, 2024
1 parent 3b6fab0 commit b219c65
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Tekst-API/tekst/search/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -461,9 +461,7 @@ async def search_advanced(
settings_advanced: AdvancedSearchSettings = AdvancedSearchSettings(),
) -> SearchResults:
client: Elasticsearch = _es_client
target_resources = {
str(res.id): res for res in await _get_target_resources(user=user)
}
target_resources = await _get_target_resources(user=user)

# construct all the sub-queries
sub_queries_must = []
Expand Down

0 comments on commit b219c65

Please sign in to comment.