Код: Выделить всё
session.query(Post).filter(
Post.title.ilike("%Regular%")
).update({"status": False})
Код: Выделить всё
InvalidRequestError: Could not evaluate current criteria in Python: "Cannot evaluate BinaryExpression with operator ". Specify 'fetch' or False for the synchronize_session parameter.
Код: Выделить всё
session.query(Post).filter(
Post.title.ilike("%Regular%")
).update({"status": False}, synchronize_session=False)
Подробнее здесь: https://stackoverflow.com/questions/512 ... h-operator