예제 #1
0
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)
예제 #2
0
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]