Skip to content

A community-supported supercharged document management system: scan, index and archive all your documents

codestyle

jonaswinklerc1fc8b2dac88
diff --git a/src/documents/file_handling.py b/src/documents/file_handling.py
index 78d0d7efc..a6d2f3ef4 100644
--- a/src/documents/file_handling.py
+++ b/src/documents/file_handling.py
@@ -8,7 +8,6 @@ from django.conf import settings
from django.template.defaultfilters import slugify
-
def create_source_path_directory(source_path):
os.makedirs(os.path.dirname(source_path), exist_ok=True)
diff --git a/src/documents/management/commands/document_exporter.py b/src/documents/management/commands/document_exporter.py
index 0e0b7901a..a7a17f124 100644
--- a/src/documents/management/commands/document_exporter.py
+++ b/src/documents/management/commands/document_exporter.py
@@ -51,7 +51,6 @@ class Command(Renderable, BaseCommand):
for index, document_dict in enumerate(manifest):
-
# Force output to unencrypted as that will be the current state.
# The importer will make the decision to encrypt or not.
manifest[index]["fields"]["storage_type"] = Document.STORAGE_TYPE_UNENCRYPTED # NOQA: E501
@@ -62,7 +61,8 @@ class Command(Renderable, BaseCommand):
filename_counter = 0
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)
if not os.path.exists(original_target):
@@ -77,7 +77,8 @@ class Command(Renderable, BaseCommand):
document_dict[EXPORTER_THUMBNAIL_NAME] = thumbnail_name
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)
document_dict[EXPORTER_ARCHIVE_NAME] = archive_name
else: