Skip to content
Snippets Groups Projects
Commit 0f0c4095 authored by Patrick Jentsch's avatar Patrick Jentsch
Browse files

Use fix path!

parent 78499ee7
No related branches found
No related tags found
No related merge requests found
...@@ -12,7 +12,6 @@ MAIL_DEFAULT_SENDER=username@example.com ...@@ -12,7 +12,6 @@ MAIL_DEFAULT_SENDER=username@example.com
### Opaque ### ### Opaque ###
OPAQUE_ADMIN=admin.opaque@example.com OPAQUE_ADMIN=admin.opaque@example.com
OPAQUE_STORAGE_DIRECTORY=/absolut/path/to/opaque/storage/directory
### Flask-SQLAlchemy ### ### Flask-SQLAlchemy ###
# SQLALCHEMY_DATABASE_URI= # SQLALCHEMY_DATABASE_URI=
...@@ -26,7 +26,7 @@ def nlp(): ...@@ -26,7 +26,7 @@ def nlp():
db.session.add(nlp_job) db.session.add(nlp_job)
db.session.commit() db.session.commit()
dir = os.path.join(current_app.config['OPAQUE_STORAGE'], dir = os.path.join(current_app.config['OPAQUE_STORAGE_DIRECTORY'],
str(nlp_job.user_id), str(nlp_job.user_id),
'jobs', 'jobs',
str(nlp_job.id)) str(nlp_job.id))
...@@ -72,7 +72,7 @@ def ocr(): ...@@ -72,7 +72,7 @@ def ocr():
db.session.add(ocr_job) db.session.add(ocr_job)
db.session.commit() db.session.commit()
dir = os.path.join(current_app.config['OPAQUE_STORAGE'], dir = os.path.join(current_app.config['OPAQUE_STORAGE_DIRECTORY'],
str(ocr_job.user_id), str(ocr_job.user_id),
'jobs', 'jobs',
str(ocr_job.id)) str(ocr_job.id))
......
...@@ -18,7 +18,7 @@ class Config: ...@@ -18,7 +18,7 @@ class Config:
''' ### Opaque ### ''' ''' ### Opaque ### '''
OPAQUE_ADMIN = os.environ.get('OPAQUE_ADMIN') OPAQUE_ADMIN = os.environ.get('OPAQUE_ADMIN')
OPAQUE_STORAGE_DIRECTORY = os.environ.get('OPAQUE_STORAGE_DIRECTORY') OPAQUE_STORAGE_DIRECTORY = '/opaque_storage'
@staticmethod @staticmethod
def init_app(app): def init_app(app):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment