Closed sweep-ai[bot] closed 3 months ago
This is an automated message generated by Sweep AI.
Hi there! :wave: Thanks for opening a PR. :tada: To get the most out of Senior Dev, please sign up in our Web App, connect your GitHub account, and add/join your organization devansh-shah-11. After that, you will receive code reviews beginning on your next opened PR. :rocket:
PR Feedback (click)
Description
This pull request migrates the database to MongoDB Atlas and creates interoperable functions. It also updates the README file to include instructions for configuring the database connection. Additionally, it adds a new section in the README file explaining the dual database setup and how to switch between a local MongoDB instance and MongoDB Atlas. The
recognise_face()
API endpoint is configured to exclusively use MongoDB Atlas.Summary
DB_CONFIG
dictionary inAPI/config.py
to store database connection configurations.API/database.py
to use theDB_CONFIG
dictionary for the database connection.API/route.py
to instantiate theDatabase
class with theuse_atlas
parameter set toTrue
for theupdate_employees()
function.README.md
to include instructions for configuring the database connection and a new section explaining the dual database setup.Fixes #9.
π Latest improvements to Sweep:
π‘ To get Sweep to edit this pull request, you can: