OhmSpectator / days-at-home-counter

0 stars 0 forks source link

Keep the date ranges in DB #8

Open OhmSpectator opened 1 year ago

OhmSpectator commented 1 year ago

Keep the date ranges in a DB. So later it would be easier to switch to per user session interface.

OhmSpectator commented 1 year ago

Take a look at SQLAlchemy

OhmSpectator commented 1 year ago

Save the credential for DB in .env file. See python-dotenv package.

OhmSpectator commented 1 year ago

If I use Flask, I can use flask_sqlalchemy extension. It also provides a way to configure the db connection.