This commit is contained in:
Gabriel Augendre 2020-08-17 08:52:30 +02:00
parent 1761cd42df
commit 89f29e649a
2 changed files with 4 additions and 4 deletions

4
.gitignore vendored
View file

@ -195,7 +195,7 @@ pytestdebug.log
# Django stuff: # Django stuff:
*.log *.log
local_settings.py local_settings.py
db.sqlite3 db/
db.sqlite3-journal db.sqlite3-journal
# Flask stuff: # Flask stuff:
@ -272,4 +272,4 @@ dmypy.json
# End of https://www.toptal.com/developers/gitignore/api/osx,pycharm,python # End of https://www.toptal.com/developers/gitignore/api/osx,pycharm,python
.idea .idea
db/ static/

View file

@ -2,8 +2,8 @@ import sqlite3
def main(): def main():
writefreely = sqlite3.connect("writefreely.db") writefreely = sqlite3.connect("db/writefreely.db")
db = sqlite3.connect("db.sqlite3") db = sqlite3.connect("db/db.sqlite3")
writefreely_c = writefreely.cursor() writefreely_c = writefreely.cursor()
db_c = db.cursor() db_c = db.cursor()
writefreely_c.execute( writefreely_c.execute(