day-cohort-70 / Bangazon-API-BandyChamps

0 stars 0 forks source link

Bug: Incorrect result for minimum products sold #38

Closed stevebrownlee closed 1 month ago

stevebrownlee commented 2 months ago

Clients can request a list of products that have sold at least the specified number of items using the following URL scheme.

http://localhost:8000/products?number_sold=20

This should return products that have been sold 20+ times. This feature is currently not working.

samsheps commented 1 month ago

current, unedited functionality: http://localhost:8000/products?number_sold=2 will show all products that have 2 or less (incl. 0) products sold; once more than 2 are sold, those products disappear from the results.