Change environment variable name: OPAQUE_FILES -> OPAQUE_STORAGE

This commit is contained in:
Patrick Jentsch 2019-08-02 13:23:26 +02:00
parent df7d618b2a
commit d6f60e4267
2 changed files with 2 additions and 2 deletions

View File

@ -32,7 +32,7 @@ def ocr():
},
'status': 'queued'
}
dir = os.path.join(app.config['OPAQUE_FILES'], 'jobs', id)
dir = os.path.join(app.config['OPAQUE_STORAGE'], 'jobs', id)
try:
os.makedirs(dir)

View File

@ -12,7 +12,7 @@ class Config:
MAIL_USERNAME = os.environ.get('MAIL_USERNAME')
MAIL_PASSWORD = os.environ.get('MAIL_PASSWORD')
OPAQUE_ADMIN = os.environ.get('OPAQUE_ADMIN')
OPAQUE_FILES = os.environ.get('OPAQUE_FILES')
OPAQUE_FILES = os.environ.get('OPAQUE_STORAGE')
OPAQUE_MAIL_SUBJECT_PREFIX = '[Opaque]'
OPAQUE_MAIL_SENDER = 'Opaque Development <dev.opaque@gmail.com>'
SECRET_KEY = os.environ.get('SECRET_KEY') or 'hard to guess string'