@app.callback(Output('tab-content', 'children'), [Input('tabs', 'active_tab'), State('all-df', 'data')])
def switch_tab(at, all_df):
    if (at == 'tab-1'):
        return []
    elif (at == 'tab-2'):
        return dbc.Accordion([dbc.AccordionItem([dash_table.DataTable(id='table', columns=[{'name': i, 'id': i} for i in query_hist['df'].columns], data=query_hist['df'].to_dict('records'), style_header={'backgroundColor': 'grey', 'fontWeight': 'bold'})], title=query_hist['time'].strftime('%H:%M:%S')) for query_hist in all_df])
    return html.P("This shouldn't ever be displayed...")
@app.callback(Output('tab-content', 'children'), [Input('tabs', 'active_tab'), State('all-df', 'data')])
def switch_tab(at, all_df):
    if (at == 'tab-1'):
        return []
    elif (at == 'tab-2'):
        return dbc.Accordion([dbc.AccordionItem([dash_table.DataTable(id='table', columns=[{'name': i, 'id': i} for i in query_hist['df'].columns], data=query_hist['df'].to_dict('records'), style_header={'backgroundColor': 'grey', 'fontWeight': 'bold'})], title=query_hist['time'].strftime('%H:%M:%S')) for query_hist in all_df])
    return html.P("This shouldn't ever be displayed...")