mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-05-01 11:19:32 -05:00
Cleaner
This commit is contained in:
parent
3e9aa21fb8
commit
dbe359a759
@ -294,9 +294,9 @@ class Command(CryptMixin, BaseCommand):
|
|||||||
manifest_dict = {}
|
manifest_dict = {}
|
||||||
|
|
||||||
# Build an overall manifest
|
# Build an overall manifest
|
||||||
for key, _ in manifest_key_to_object_query.items():
|
for key, object_query in manifest_key_to_object_query.items():
|
||||||
manifest_dict[key] = json.loads(
|
manifest_dict[key] = json.loads(
|
||||||
serializers.serialize("json", manifest_key_to_object_query[key]),
|
serializers.serialize("json", object_query),
|
||||||
)
|
)
|
||||||
|
|
||||||
self.encrypt_secret_fields(manifest_dict)
|
self.encrypt_secret_fields(manifest_dict)
|
||||||
@ -370,8 +370,8 @@ class Command(CryptMixin, BaseCommand):
|
|||||||
|
|
||||||
# 4.1 write primary manifest to target folder
|
# 4.1 write primary manifest to target folder
|
||||||
manifest = []
|
manifest = []
|
||||||
for key, _ in manifest_dict.items():
|
for key, item in manifest_dict.items():
|
||||||
manifest.extend(manifest_dict[key])
|
manifest.extend(item)
|
||||||
manifest_path = (self.target / "manifest.json").resolve()
|
manifest_path = (self.target / "manifest.json").resolve()
|
||||||
self.check_and_write_json(
|
self.check_and_write_json(
|
||||||
manifest,
|
manifest,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user