kvesteri / intervals

Python tools for handling intervals (ranges of comparable objects).
BSD 3-Clause "New" or "Revised" License
107 stars 17 forks source link

Problem using SQLAlchemy and calling history #28

Closed fmerges closed 8 years ago

fmerges commented 9 years ago

Hello,

I have a problem with intervals and SQLAlchemy, I'm tracking changes to objects via the history, so when I try to insert a new DateRange it fails because it's comparing a DateInterval() object with a symbol('NO_VALUE'), which then tries to create a DateInterval("[symbol('NO_VALUE'), symbol('NO_VALUE')]") which of course fails with:

TypeError: unsupported operand type(s) for +: 'symbol' and 'datetime.timedelta'

Any ideas?

kvesteri commented 8 years ago

Now fixed (as of version 0.6.0).