mirror of
				https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
				synced 2025-11-03 20:02:47 +00:00 
			
		
		
		
	Fix corpus build process
This commit is contained in:
		@@ -875,7 +875,9 @@ class Corpus(HashidMixin, db.Model):
 | 
			
		||||
            text_element.set('publishing_year', str(corpus_file.publishing_year))  # noqa
 | 
			
		||||
            text_element.set('school', corpus_file.school or 'NULL')
 | 
			
		||||
            text_element.set('title', corpus_file.title)
 | 
			
		||||
            corpus_element.insert(1, text_element)
 | 
			
		||||
            text_element.tail = '\n'
 | 
			
		||||
            # corpus_element.insert(1, text_element)
 | 
			
		||||
            corpus_element.append(text_element)
 | 
			
		||||
        ET.ElementTree(corpus_element).write(
 | 
			
		||||
            os.path.join(self.path, 'cwb', 'corpus.vrt'),
 | 
			
		||||
            encoding='utf-8'
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user