igorbenav / fastcrud

FastCRUD is a Python package for FastAPI, offering robust async CRUD operations and flexible endpoint creation utilities.
MIT License
693 stars 59 forks source link

fix complex parameter filter with between #150

Closed wu-clan closed 3 months ago

wu-clan commented 3 months ago

Pull Request Template for FastCRUD

Description

There is an error in the normal use of the between filter, this pr will fix it!

Changes

Fixed _parse_filters method

Tests

Added test cases to sqlalchemy and sqlmodel: test_parse_filters_between_condition.

Checklist

Additional Notes

This repair process also includes changes to .gitignore, notably there was a mypy type checking error in crud_router, which I was unable to fix, but instead skipped it over checking.

igorbenav commented 3 months ago

Nice one, thanks!