Skip to content

Commit

Permalink
Revert unrelated changes
Browse files Browse the repository at this point in the history
Signed-off-by: Olga Bulat <[email protected]>
  • Loading branch information
obulat committed Oct 18, 2024
1 parent 6b941d2 commit 61e7215
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions api/api/controllers/search_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
from api.utils import tallies
from api.utils.check_dead_links import check_dead_links
from api.utils.dead_link_mask import get_query_hash
from api.utils.text import SearchContext
from api.utils.search_context import SearchContext


# Using TYPE_CHECKING to avoid circular imports when importing types
Expand Down Expand Up @@ -460,9 +460,9 @@ def query_media(
)

result_ids = [result.identifier for result in results]
text = SearchContext.build(result_ids, origin_index)
search_context = SearchContext.build(result_ids, origin_index)

return results, page_count, result_count, text.asdict()
return results, page_count, result_count, search_context.asdict()


def tally_results(
Expand Down

0 comments on commit 61e7215

Please sign in to comment.