mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-11-03 03:16:10 -06:00 
			
		
		
		
	fixes #689
This commit is contained in:
		@@ -123,10 +123,11 @@ class DocumentClassifier(object):
 | 
				
			|||||||
            m.update(y.to_bytes(4, 'little', signed=True))
 | 
					            m.update(y.to_bytes(4, 'little', signed=True))
 | 
				
			||||||
            labels_correspondent.append(y)
 | 
					            labels_correspondent.append(y)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            tags = [tag.pk for tag in doc.tags.filter(
 | 
					            tags = sorted([tag.pk for tag in doc.tags.filter(
 | 
				
			||||||
                matching_algorithm=MatchingModel.MATCH_AUTO
 | 
					                matching_algorithm=MatchingModel.MATCH_AUTO
 | 
				
			||||||
            )]
 | 
					            )])
 | 
				
			||||||
            m.update(bytearray(tags))
 | 
					            for tag in tags:
 | 
				
			||||||
 | 
					                m.update(tag.to_bytes(4, 'little', signed=True))
 | 
				
			||||||
            labels_tags.append(tags)
 | 
					            labels_tags.append(tags)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        if not data:
 | 
					        if not data:
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user