mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-11-03 19:17:13 -05:00 
			
		
		
		
	Fix: include matching check for scheduled workflows (#9594)
This commit is contained in:
		
							parent
							
								
									8ad794e189
								
							
						
					
					
						commit
						b9f7428f2f
					
				@ -1225,14 +1225,7 @@ def run_workflows(
 | 
				
			|||||||
            document.refresh_from_db()
 | 
					            document.refresh_from_db()
 | 
				
			||||||
            doc_tag_ids = list(document.tags.values_list("pk", flat=True))
 | 
					            doc_tag_ids = list(document.tags.values_list("pk", flat=True))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        # If a workflow is supplied, we don't need to check if it matches
 | 
					        if matching.document_matches_workflow(document, workflow, trigger_type):
 | 
				
			||||||
        matches = (
 | 
					 | 
				
			||||||
            matching.document_matches_workflow(document, workflow, trigger_type)
 | 
					 | 
				
			||||||
            if workflow_to_run is None
 | 
					 | 
				
			||||||
            else True
 | 
					 | 
				
			||||||
        )
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
        if matches:
 | 
					 | 
				
			||||||
            action: WorkflowAction
 | 
					            action: WorkflowAction
 | 
				
			||||||
            for action in workflow.actions.all():
 | 
					            for action in workflow.actions.all():
 | 
				
			||||||
                message = f"Applying {action} from {workflow}"
 | 
					                message = f"Applying {action} from {workflow}"
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user