rohitjain00 / SIH-farmerPortal-backend

API for farmer portal
https://Sih-farmer-portal.herokuapp.com/
1 stars 0 forks source link

Replace find method with find one method in buyer.py file #9

Closed rohitjain00 closed 4 years ago

rohitjain00 commented 4 years ago

The find() method returns all occurrences in the selection.

The find_one() method returns the first occurrence in the selection.

rohitjain00 commented 4 years ago

Okay, I understood the problem here the data inserted in the database was in SNAKE_CASE while the data inserted was in lowerCamelCase

rohitjain00 commented 4 years ago

I've corrected the problem in https://github.com/rohitjain00/SIH-farmerPortal-backend/commit/c0977c763688a587a63d55d3053f5072ba52207b