Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add advanced filtering on GET /prices #29

Merged
merged 3 commits into from
Nov 15, 2023

Conversation

raphodn
Copy link
Member

@raphodn raphodn commented Nov 15, 2023

What

  • install fastapi-filter
  • setup advanced filtering on GET /prices endpoint

Screenshot

image

@raphodn raphodn self-assigned this Nov 15, 2023
@raphodn raphodn requested a review from raphael0202 November 15, 2023 17:11
app/crud.py Outdated
@@ -50,26 +50,18 @@ def delete_user(db: Session, user_id: UserBase):
return False


def get_prices(db: Session, filters={}):
def get_prices(db: Session, filters: PriceFilter = None):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PricerFilter | None = None

Base automatically changed from raphodn/price-get-with-pagination to main November 15, 2023 19:53
@raphodn raphodn force-pushed the raphodn/price-get-with-advanced-filters branch from 99f7e02 to d645667 Compare November 15, 2023 20:06
@raphodn raphodn merged commit 9b52406 into main Nov 15, 2023
2 of 3 checks passed
@raphodn raphodn deleted the raphodn/price-get-with-advanced-filters branch November 15, 2023 20:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants