mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-10-30 03:56:23 -05:00 
			
		
		
		
	pycodestyle
This commit is contained in:
		| @@ -639,7 +639,10 @@ class BulkDownloadView(APIView): | |||||||
|         content = serializer.validated_data.get('content') |         content = serializer.validated_data.get('content') | ||||||
|  |  | ||||||
|         os.makedirs(settings.SCRATCH_DIR, exist_ok=True) |         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': |         if content == 'both': | ||||||
|             strategy_class = OriginalAndArchiveStrategy |             strategy_class = OriginalAndArchiveStrategy | ||||||
|   | |||||||
| @@ -300,4 +300,3 @@ def strip_excess_whitespace(text): | |||||||
|  |  | ||||||
|     # TODO: this needs a rework |     # TODO: this needs a rework | ||||||
|     return no_trailing_whitespace.strip() |     return no_trailing_whitespace.strip() | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 jonaswinkler
					jonaswinkler