Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 150a90c8 authored by Markus Heiser's avatar Markus Heiser
Browse files
parent abd2d860
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -54,7 +54,7 @@ def replace_auto_language(search_query: SearchQuery):
    if search_query.lang != 'auto':
        return

    detected_lang = detect_language(search_query.query, threshold=0.0, only_search_languages=True)
    detected_lang = detect_language(search_query.query, threshold=0.3, only_search_languages=True)
    if detected_lang is None:
        # fallback to 'all' if no language has been detected
        search_query.lang = 'all'