@app.route('/test', methods=['GET', 'POST'])
def test():
    select = request.form.get('comp_select')
return str(select)
if __name__ == '__main__':
    app.run(debug=True)
Getting value from select tag using flask