SomethingGeneric / flaskpress

Wordpress but it's actually Python + Flask
GNU General Public License v3.0
0 stars 0 forks source link

Change SQLite connection to site.db in working directory #47

Closed sweep-ai[bot] closed 1 year ago

sweep-ai[bot] commented 1 year ago

Description

This PR changes the SQLite connection in the main.py file to point to the site.db file in the working directory. Currently, the connection string is set to sqlite:///site.db, which assumes that the database file is located in the same directory as the main.py file. However, we want to change the location of the database to the working directory. To achieve this, the code now uses the os module to get the path of the working directory and appends site.db to it.

Summary of Changes

Fixes #41.


To checkout this PR branch, run the following command in your terminal:

git checkout sweep/change-sqlite-connection_1

πŸŽ‰ Latest improvements to Sweep:


πŸ’‘ To get Sweep to edit this pull request, you can: