@app.route('/id/<colour_id>')
def get_colour_by_id(colour_id):
    obj = db.get((tinydb.Query().colorId == colour_id))
    if (not obj):
        abort(404)
    return Template(HTML).substitute(obj)
@app.route('/id/<colour_id>')
def get_colour_by_id(colour_id):
    obj = db.get((tinydb.Query().colorId == colour_id))
    if (not obj):
        abort(404)
    return Template(HTML).substitute(obj)