diff --git a/ref-test/app/install.py b/ref-test/app/install.py index 2ea9759..31f9ee0 100644 --- a/ref-test/app/install.py +++ b/ref-test/app/install.py @@ -22,8 +22,13 @@ def install_scripts(): if not database_exists(Config.SQLALCHEMY_DATABASE_URI): create_database(Config.SQLALCHEMY_DATABASE_URI) write('system.log', 'No database found. Creating a new database.') +<<<<<<< HEAD with app.app_context(): db.create_all() write('system.log', 'Creating database schema.') +======= + with app.app_context(): db.create_all() + write('system.log', 'Creating database schema.') +>>>>>>> dd8685b1039a6bdcbe1df0b07c2ef5d72399c876 if not path.isfile(f'./{data}/.encryption.key'): write('system.log', 'No encryption key found. Generating new encryption key.') with open(f'./{data}/.encryption.key', 'wb') as key_file: diff --git a/ref-test/data/.gitignore b/ref-test/data/.gitignore new file mode 100644 index 0000000..f59ec20 --- /dev/null +++ b/ref-test/data/.gitignore @@ -0,0 +1 @@ +* \ No newline at end of file