diff --git a/app/utils/bangs.py b/app/utils/bangs.py index b9aebee..9e71233 100644 --- a/app/utils/bangs.py +++ b/app/utils/bangs.py @@ -58,7 +58,7 @@ def resolve_bang(query: str, bangs_dict: dict) -> str: if operator not in split_query \ and operator[1:] + operator[0] not in split_query: continue - return bangs_dict[operator]['url'].format( + return bangs_dict[operator]['url'].replace('{}', query.replace(operator if operator in split_query - else operator[1:] + operator[0], '').strip()) + else operator[1:] + operator[0], '').strip(), 1) return ''