mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-10-30 03:56:23 -05: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
	 Jonas Winkler
					Jonas Winkler