Solved - error was not SQL alchemy related. It was a subtle bug with offsets, originating from marshmallow schema passing and old filter date.