The filter_by() method takes a sequence of keyword arguments, so you always have to use = with it.
You want to use the filter() method which allows for !=:
seats = Seat.query.filter(Seat.invite != None).all()
The filter_by() method takes a sequence of keyword arguments, so you always have to use = with it.
You want to use the filter() method which allows for !=:
seats = Seat.query.filter(Seat.invite != None).all()