Updated config to have defaults for keys
Removed abstraction of data location for image build
This commit is contained in:
@@ -8,10 +8,10 @@ from cryptography.fernet import Fernet
|
||||
from os import mkdir, path
|
||||
from pathlib import Path
|
||||
|
||||
data = Path(app.config.get('DATA'))
|
||||
database_uri = app.config.get('SQLALCHEMY_DATABASE_URI')
|
||||
|
||||
with app.app_context():
|
||||
data = Path(app.config.get('DATA'))
|
||||
if not path.isdir(f'./{data}'): mkdir(f'./{data}')
|
||||
if not path.isdir(f'./{data}/questions'): mkdir(f'./{data}/questions')
|
||||
if not path.isfile(f'./{data}/.gitignore'):
|
||||
|
Reference in New Issue
Block a user