mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-11-04 03:27:12 -05:00 
			
		
		
		
	flake8
Signed-off-by: florian on nixos (Florian Brandes) <florian.brandes@posteo.de>
This commit is contained in:
		
							parent
							
								
									50f474ae92
								
							
						
					
					
						commit
						488fe28ad3
					
				@ -80,7 +80,7 @@ def barcode_reader(image) -> list:
 | 
				
			|||||||
    detected_barcodes = pyzbar.decode(image)
 | 
					    detected_barcodes = pyzbar.decode(image)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    if not detected_barcodes:
 | 
					    if not detected_barcodes:
 | 
				
			||||||
        logger.debug(f"No barcode detected")
 | 
					        logger.debug("No barcode detected")
 | 
				
			||||||
    else:
 | 
					    else:
 | 
				
			||||||
        # Traverse through all the detected barcodes in image
 | 
					        # Traverse through all the detected barcodes in image
 | 
				
			||||||
        for barcode in detected_barcodes:
 | 
					        for barcode in detected_barcodes:
 | 
				
			||||||
@ -124,7 +124,7 @@ def separate_pages(filepath: str, pages_to_split_on: list) -> list:
 | 
				
			|||||||
    # TODO: Get the directory of the file and save the other files there
 | 
					    # TODO: Get the directory of the file and save the other files there
 | 
				
			||||||
    # TODO: Return list of new paths of the new files
 | 
					    # TODO: Return list of new paths of the new files
 | 
				
			||||||
    if len(pages_to_split_on) <= 0:
 | 
					    if len(pages_to_split_on) <= 0:
 | 
				
			||||||
        logger.warning(f"No pages to split on!")
 | 
					        logger.warning("No pages to split on!")
 | 
				
			||||||
    else:
 | 
					    else:
 | 
				
			||||||
        # go from the first page to the first separator page
 | 
					        # go from the first page to the first separator page
 | 
				
			||||||
        dst = Pdf.new()
 | 
					        dst = Pdf.new()
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user