fixes 299 by adding allowing chips param

This commit is contained in:
jacr13 2021-11-17 12:48:22 +01:00
parent b73c14c7cc
commit 68b6b9e401

View File

@ -115,6 +115,12 @@ def gen_query(query, args, config, near_city=None) -> str:
if 'nfpr' in args: if 'nfpr' in args:
param_dict['nfpr'] = '&nfpr=' + args.get('nfpr') param_dict['nfpr'] = '&nfpr=' + args.get('nfpr')
# 'chips' is used in image tabs to pass the optional 'filter' to add to the
# given search term
if 'chips' in args:
print(args.get('chips'))
param_dict['chips'] = '&chips=' + args.get('chips')
param_dict['cr'] = ('&cr=' + config.ctry) if config.ctry else '' param_dict['cr'] = ('&cr=' + config.ctry) if config.ctry else ''
param_dict['hl'] = '&hl=' + ( param_dict['hl'] = '&hl=' + (
config.lang_interface.replace('lang_', '') config.lang_interface.replace('lang_', '')