You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when I filter using simple date string api/session?q={"filters":[{"name":"start_time","op":"ge","val":"2018-10-19"},{"name":"end_time","op":"le","val":"2018-11-19"}]}
I get 3 result. It does not include one result which has end_time "2018-11-19".
However when I filter using datetime iso string api/session?q={"filters":[{"name":"start_time","op":"ge","val":"2018-10-19"},{"name":"end_time","op":"le","val":"2018-11-19T23:59:59.000Z"}]}
It returns 4 result which is correct.
It seems like edge case is not covered here when filtered using date.
Edit:
I also tried api/session?q={"filters":[{"name":"start_time","op":"ge","val":"2018-10-19"},{"name":"end_time","op":"le","val":"2018-11-20"}]}
It returns 4 results.
The text was updated successfully, but these errors were encountered:
Name: Flask-Restless
Version: 0.17.0
I am getting wrong results while filtering.
I have model defined like below:
when I filter using simple date string
api/session?q={"filters":[{"name":"start_time","op":"ge","val":"2018-10-19"},{"name":"end_time","op":"le","val":"2018-11-19"}]}
I get 3 result. It does not include one result which has end_time
"2018-11-19"
.However when I filter using datetime iso string
api/session?q={"filters":[{"name":"start_time","op":"ge","val":"2018-10-19"},{"name":"end_time","op":"le","val":"2018-11-19T23:59:59.000Z"}]}
It returns 4 result which is correct.
It seems like edge case is not covered here when filtered using date.
Edit:
I also tried
api/session?q={"filters":[{"name":"start_time","op":"ge","val":"2018-10-19"},{"name":"end_time","op":"le","val":"2018-11-20"}]}
It returns 4 results.
The text was updated successfully, but these errors were encountered: