Add TODO in migration scripts

This commit is contained in:
Patrick Jentsch 2023-11-17 10:42:55 +01:00
parent ae5646512d
commit ab132746e7
2 changed files with 2 additions and 0 deletions

View File

@ -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):

View File

@ -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')