twice

i have a lmb sensor connected to a python sensor and is triggered once when the button is pressed and once when it is released

how do i make it only trigger when it is pressed and not when it is released?