def update_header_and_footer(search): params = ess.search_to_params(search) if "lang" in params: language = params["lang"] else: language = "en" return ess.get_header_and_footer_text(language)
def update_dropdowns(search): params = ess.search_to_params(search) my_units = "british" if "units" in params: my_units = params["units"] my_lang = "en" if "lang" in params: my_lang = params["lang"] return [my_units, my_lang]