Skip to content

Commit 61e7215

Browse files
committed
Revert unrelated changes
Signed-off-by: Olga Bulat <obulat@gmail.com>
1 parent 6b941d2 commit 61e7215

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

api/api/controllers/search_controller.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
from api.utils import tallies
2929
from api.utils.check_dead_links import check_dead_links
3030
from api.utils.dead_link_mask import get_query_hash
31-
from api.utils.text import SearchContext
31+
from api.utils.search_context import SearchContext
3232

3333

3434
# Using TYPE_CHECKING to avoid circular imports when importing types
@@ -460,9 +460,9 @@ def query_media(
460460
)
461461

462462
result_ids = [result.identifier for result in results]
463-
text = SearchContext.build(result_ids, origin_index)
463+
search_context = SearchContext.build(result_ids, origin_index)
464464

465-
return results, page_count, result_count, text.asdict()
465+
return results, page_count, result_count, search_context.asdict()
466466

467467

468468
def tally_results(

0 commit comments

Comments
 (0)