mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-11-03 03:16:10 -06:00 
			
		
		
		
	on_modified not needed for the consumer.
This commit is contained in:
		@@ -25,14 +25,12 @@ class Handler(FileSystemEventHandler):
 | 
			
		||||
            try:
 | 
			
		||||
                self.consumer.try_consume_file(file)
 | 
			
		||||
            except Exception as e:
 | 
			
		||||
                # Catch all so that the consumer won't crash.
 | 
			
		||||
                logging.getLogger(__name__).error("Error while consuming document: {}".format(e))
 | 
			
		||||
 | 
			
		||||
    def on_created(self, event):
 | 
			
		||||
        self._consume(event.src_path)
 | 
			
		||||
 | 
			
		||||
    def on_modified(self, event):
 | 
			
		||||
        self._consume(event.src_path)
 | 
			
		||||
 | 
			
		||||
    def on_moved(self, event):
 | 
			
		||||
        self._consume(event.src_path)
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user