mirror of
				https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
				synced 2025-11-03 20:02:47 +00:00 
			
		
		
		
	Add TODO in migration scripts
This commit is contained in:
		@@ -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')
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user