mirror of
				https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
				synced 2025-11-03 20:02:47 +00:00 
			
		
		
		
	Add breadcrumbs to users package
This commit is contained in:
		@@ -4,7 +4,7 @@ from app.models import SpaCyNLPPipelineModel
 | 
			
		||||
 | 
			
		||||
def spacy_nlp_pipeline_model_dlc():
 | 
			
		||||
    snpm_id = request.view_args['spacy_nlp_pipeline_model_id']
 | 
			
		||||
    snpm = SpaCyNLPPipelineModel.query.get(snpm_id)
 | 
			
		||||
    snpm = SpaCyNLPPipelineModel.query.get_or_404(snpm_id)
 | 
			
		||||
    return [
 | 
			
		||||
        {
 | 
			
		||||
            'text': f'{snpm.title} {snpm.version}',
 | 
			
		||||
 
 | 
			
		||||
@@ -4,7 +4,7 @@ from app.models import TesseractOCRPipelineModel
 | 
			
		||||
 | 
			
		||||
def tesseract_ocr_pipeline_model_dlc():
 | 
			
		||||
    topm_id = request.view_args['tesseract_ocr_pipeline_model_id']
 | 
			
		||||
    topm = TesseractOCRPipelineModel.query.get(topm_id)
 | 
			
		||||
    topm = TesseractOCRPipelineModel.query.get_or_404(topm_id)
 | 
			
		||||
    return [
 | 
			
		||||
        {
 | 
			
		||||
            'text': f'{topm.title} {topm.version}',
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user