Esempio n. 1
0
def index():
    """Index route"""
    global customer_list
    customer_list = excel.load_excel()
    return render_template(
        'index.html',
        customer_dict=customer_list,
        title="QB Customer Leads",
    )
def index():
    access_token = session.get('access_token')
    if access_token is None:
        return redirect(url_for('auth'))

    access_token = access_token[0]
    global customer_list
    customer_list = excel.load_excel()
    return render_template('index.html',
                           customer_dict=customer_list,
                           title="QB Customer Leads",
                           text_color=font_color)