mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-11-03 19:17:13 -05:00 
			
		
		
		
	excluded the lockfile from the sanity checker.
This commit is contained in:
		
							parent
							
								
									b3daf0efc3
								
							
						
					
					
						commit
						3f03cbf66c
					
				@ -46,6 +46,10 @@ def check_sanity():
 | 
			
		||||
        for f in files:
 | 
			
		||||
            present_files.append(os.path.normpath(os.path.join(root, f)))
 | 
			
		||||
 | 
			
		||||
    lockfile = os.path.normpath(settings.MEDIA_LOCK)
 | 
			
		||||
    if lockfile in present_files:
 | 
			
		||||
        present_files.remove(lockfile)
 | 
			
		||||
 | 
			
		||||
    for doc in Document.objects.all():
 | 
			
		||||
        # Check sanity of the thumbnail
 | 
			
		||||
        if not os.path.isfile(doc.thumbnail_path):
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user