When you type in a numerical value 0 to filters, it is being sent to backend as empty string "". Later on when sqlalchemy tries to compare numerical value in database to the empty string, the ...