database is mysql, checked the document and found no exclude, only an except_.
if my table is called table_a, and has a status field, if it is a single field, you can use! = to exclude,
what should I say if it is a scope? For example, if you have a field date, to query all records that are not in a certain time range, you can do this
from datetime import datetime
table_a.query.filter(table_a.date.between(datetime.now()-datetime.timedelta(hours=2), now)))
the above code queries the data from the current time to 2 hours ago. How do I write if I want to query all the data outside this range?
under the guidance of the bosses.