@app.route('/')
@app.route('/random')
def get_random_colour():
    return redirect(url_for('get_colour_by_id', colour_id=random.choice(db.all())['colorId']))
@app.route('/')
@app.route('/random')
def get_random_colour():
    return redirect(url_for('get_colour_by_id', colour_id=random.choice(db.all())['colorId']))