mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-10-30 03:56:23 -05:00 
			
		
		
		
	codestyle
This commit is contained in:
		| @@ -8,7 +8,6 @@ from django.conf import settings | |||||||
| from django.template.defaultfilters import slugify | from django.template.defaultfilters import slugify | ||||||
|  |  | ||||||
|  |  | ||||||
|  |  | ||||||
| def create_source_path_directory(source_path): | def create_source_path_directory(source_path): | ||||||
|     os.makedirs(os.path.dirname(source_path), exist_ok=True) |     os.makedirs(os.path.dirname(source_path), exist_ok=True) | ||||||
|  |  | ||||||
|   | |||||||
| @@ -51,7 +51,6 @@ class Command(Renderable, BaseCommand): | |||||||
|  |  | ||||||
|         for index, document_dict in enumerate(manifest): |         for index, document_dict in enumerate(manifest): | ||||||
|  |  | ||||||
|  |  | ||||||
|             # Force output to unencrypted as that will be the current state. |             # Force output to unencrypted as that will be the current state. | ||||||
|             # The importer will make the decision to encrypt or not. |             # The importer will make the decision to encrypt or not. | ||||||
|             manifest[index]["fields"]["storage_type"] = Document.STORAGE_TYPE_UNENCRYPTED  # NOQA: E501 |             manifest[index]["fields"]["storage_type"] = Document.STORAGE_TYPE_UNENCRYPTED  # NOQA: E501 | ||||||
| @@ -62,7 +61,8 @@ class Command(Renderable, BaseCommand): | |||||||
|  |  | ||||||
|             filename_counter = 0 |             filename_counter = 0 | ||||||
|             while True: |             while True: | ||||||
|                 original_name = document.get_public_filename(counter=filename_counter) |                 original_name = document.get_public_filename( | ||||||
|  |                     counter=filename_counter) | ||||||
|                 original_target = os.path.join(self.target, original_name) |                 original_target = os.path.join(self.target, original_name) | ||||||
|  |  | ||||||
|                 if not os.path.exists(original_target): |                 if not os.path.exists(original_target): | ||||||
| @@ -77,7 +77,8 @@ class Command(Renderable, BaseCommand): | |||||||
|             document_dict[EXPORTER_THUMBNAIL_NAME] = thumbnail_name |             document_dict[EXPORTER_THUMBNAIL_NAME] = thumbnail_name | ||||||
|  |  | ||||||
|             if os.path.exists(document.archive_path): |             if os.path.exists(document.archive_path): | ||||||
|                 archive_name = document.get_public_filename(archive=True, counter=filename_counter, suffix="_archive") |                 archive_name = document.get_public_filename( | ||||||
|  |                     archive=True, counter=filename_counter, suffix="_archive") | ||||||
|                 archive_target = os.path.join(self.target, archive_name) |                 archive_target = os.path.join(self.target, archive_name) | ||||||
|                 document_dict[EXPORTER_ARCHIVE_NAME] = archive_name |                 document_dict[EXPORTER_ARCHIVE_NAME] = archive_name | ||||||
|             else: |             else: | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 jonaswinkler
					jonaswinkler