def test_connection(): '''This takes the function from fix_connection_test to send a connection to the BME server waits 3 seconds to allow connection to complete before refreshing the page Returns: A new index page is requested to show the updated server status ''' fix_connection.connect_client('FIXT-1.1') time.sleep(3) return render_template('index.html', connection_status=fix_connection.isConnectedText())
def access(): return render_template('access.html', connection_status=fix_connection.isConnectedText())
def new_order(): return render_template('new_order.html', connection_status=fix_connection.isConnectedText())
def orders(): return render_template('orders.html', connection_status=fix_connection.isConnectedText())
def index(): return render_template('index.html', connection_status=fix_connection.isConnectedText())