mirror of
				https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
				synced 2025-10-31 10:42:43 +00:00 
			
		
		
		
	Use fix path!
This commit is contained in:
		| @@ -12,7 +12,6 @@ MAIL_DEFAULT_SENDER=username@example.com | ||||
|  | ||||
| ### Opaque ### | ||||
| OPAQUE_ADMIN=admin.opaque@example.com | ||||
| OPAQUE_STORAGE_DIRECTORY=/absolut/path/to/opaque/storage/directory | ||||
|  | ||||
| ### Flask-SQLAlchemy ### | ||||
| # SQLALCHEMY_DATABASE_URI= | ||||
|   | ||||
| @@ -26,7 +26,7 @@ def nlp(): | ||||
|         db.session.add(nlp_job) | ||||
|         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), | ||||
|                            'jobs', | ||||
|                            str(nlp_job.id)) | ||||
| @@ -72,7 +72,7 @@ def ocr(): | ||||
|         db.session.add(ocr_job) | ||||
|         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), | ||||
|                            'jobs', | ||||
|                            str(ocr_job.id)) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user