Closed aaubry closed 8 months ago
Hi @aaubry Thank you for a good catch - the matter of the request and changes are absolutely clear.
Could you, please, make some small adjustments before completing the PR:
Let me know if you need any assistance. Thank you!
Sure, no problem. I'll try to do that still today. Thanks!
I'm closing this because I don't think I can change the target branch. I've opened https://github.com/dmitry-merzlyakov/nledger/pull/39 instead.
The conditions in the
DateSpecifier
constructor are inverted, causing queries such as--begin 'since 7 days ago' reg
to be filtered incorrectly. When the traits are null (or omitted), the intention is to include every component of the date, but currently no components are used. In the original source, the conditions are different:This fix inverts the logic to match the original source code, and makes the above query work as intended.