mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-11-03 19:17:13 -05:00 
			
		
		
		
	pycodestyle
This commit is contained in:
		
							parent
							
								
									50c1978d36
								
							
						
					
					
						commit
						6da237dd9e
					
				@ -639,7 +639,10 @@ class BulkDownloadView(APIView):
 | 
			
		||||
        content = serializer.validated_data.get('content')
 | 
			
		||||
 | 
			
		||||
        os.makedirs(settings.SCRATCH_DIR, exist_ok=True)
 | 
			
		||||
        temp = tempfile.NamedTemporaryFile(dir=settings.SCRATCH_DIR, suffix="-compressed-archive", delete=False)
 | 
			
		||||
        temp = tempfile.NamedTemporaryFile(
 | 
			
		||||
            dir=settings.SCRATCH_DIR,
 | 
			
		||||
            suffix="-compressed-archive",
 | 
			
		||||
            delete=False)
 | 
			
		||||
 | 
			
		||||
        if content == 'both':
 | 
			
		||||
            strategy_class = OriginalAndArchiveStrategy
 | 
			
		||||
 | 
			
		||||
@ -300,4 +300,3 @@ def strip_excess_whitespace(text):
 | 
			
		||||
 | 
			
		||||
    # TODO: this needs a rework
 | 
			
		||||
    return no_trailing_whitespace.strip()
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user