mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2024-12-24 10:34:17 +00:00
Add TODO in migration scripts
This commit is contained in:
parent
ae5646512d
commit
ab132746e7
@ -20,6 +20,7 @@ depends_on = None
|
||||
|
||||
|
||||
def upgrade():
|
||||
# TODO: Add error handling for sqlalchemy.exc.ProgrammingError
|
||||
for user in User.query.all():
|
||||
spacy_nlp_pipeline_models_dir = os.path.join(user.path, 'spacy_nlp_pipeline_models')
|
||||
if os.path.exists(spacy_nlp_pipeline_models_dir):
|
||||
|
@ -17,6 +17,7 @@ depends_on = None
|
||||
|
||||
|
||||
def upgrade():
|
||||
# TODO: Add error handling for sqlalchemy.exc.ProgrammingError
|
||||
for user in User.query.all():
|
||||
old_tesseract_ocr_pipeline_model_path = os.path.join(user.path, 'tesseract_ocr_models')
|
||||
new_tesseract_ocr_pipeline_model_path = os.path.join(user.path, 'tesseract_ocr_pipeline_models')
|
||||
|
Loading…
Reference in New Issue
Block a user