Change path for corpora.

This commit is contained in:
Patrick Jentsch 2019-08-06 14:56:41 +02:00
parent 36753c3b51
commit 32c6b9ab8a

View File

@ -38,7 +38,10 @@ def dashboard():
user_id=current_user.id)
db.session.add(corpus)
db.session.commit()
dir = os.path.join(app.config['OPAQUE_STORAGE'], 'corpora', str(corpus.id))
dir = os.path.join(app.config['OPAQUE_STORAGE'],
str(corpus.user_id),
'corpora',
str(corpus.id))
try:
os.makedirs(dir)