mirror of
https://github.com/benbusby/whoogle-search.git
synced 2025-08-11 09:16:23 -04:00
Bang refactor PEP-8 fix
Addresses PEP-8 formatting issue in previous commit
This commit is contained in:
parent
ddf951de35
commit
c766554eea
@ -58,7 +58,8 @@ def resolve_bang(query: str, bangs_dict: dict) -> str:
|
|||||||
if operator not in split_query \
|
if operator not in split_query \
|
||||||
and operator[1:] + operator[0] not in split_query:
|
and operator[1:] + operator[0] not in split_query:
|
||||||
continue
|
continue
|
||||||
return bangs_dict[operator]['url'].replace('{}',
|
return bangs_dict[operator]['url'].replace(
|
||||||
|
'{}',
|
||||||
query.replace(operator if operator in split_query
|
query.replace(operator if operator in split_query
|
||||||
else operator[1:] + operator[0], '').strip(), 1)
|
else operator[1:] + operator[0], '').strip(), 1)
|
||||||
return ''
|
return ''
|
||||||
|
Loading…
x
Reference in New Issue
Block a user