From 68b6b9e401bf0e2c630873b955b38d2203691b22 Mon Sep 17 00:00:00 2001 From: jacr13 Date: Wed, 17 Nov 2021 12:48:22 +0100 Subject: [PATCH] fixes 299 by adding allowing chips param --- app/request.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/request.py b/app/request.py index 71f4e9b..9e74028 100644 --- a/app/request.py +++ b/app/request.py @@ -115,6 +115,12 @@ def gen_query(query, args, config, near_city=None) -> str: if 'nfpr' in args: 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['hl'] = '&hl=' + ( config.lang_interface.replace('lang_', '')