Update app/utils/results.py

Co-authored-by: Ben Busby <noreply+git@benbusby.com>
This commit is contained in:
Joao A. Candido Ramos 2021-11-19 09:34:32 +01:00 committed by GitHub
parent ca1ff8e119
commit eb7681e345
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -248,8 +248,7 @@ def get_tabs_content(tabs: dict,
# update href with query
query = full_query
if '&tbm=' in full_query:
query = full_query.replace(f"&tbm={search_type}", '')
query = full_query.replace(f'&tbm={search_type}', '')
if tab_content['tbm'] is not None:
query = f"{query}&tbm={tab_content['tbm']}"