How do I in Flask get what of two buttons in same form has been clicked to perform different actions?

Solution
from flask import Flask, render_template, request
app = Flask(__name__)


@app.route('/check_button', methods=['GET','POST'])
def check_button():
    print("Request.method:", request.method)
    try:
        if request.form['two_buttons'] == "add-update": # check if value is "add-update"
            print(f"call add-update_function with {request.form['search']}")
        else:
            print(f"call remove_function with {request.form['search']}")
        return render_template('two_button_add_and_remove.html')
    except Exception as e:
        return render_template('two_button_add_and_remove.html')

if __name__ == '__main__':
    app.run(debug=True)