mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2024-12-24 10:34:17 +00:00
Change path for corpora.
This commit is contained in:
parent
36753c3b51
commit
32c6b9ab8a
@ -38,7 +38,10 @@ def dashboard():
|
|||||||
user_id=current_user.id)
|
user_id=current_user.id)
|
||||||
db.session.add(corpus)
|
db.session.add(corpus)
|
||||||
db.session.commit()
|
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:
|
try:
|
||||||
os.makedirs(dir)
|
os.makedirs(dir)
|
||||||
|
Loading…
Reference in New Issue
Block a user