Commit 1e68f3c02f14
Changed files (1)
systems
aion
systems/aion/extra.nix
@@ -118,7 +118,7 @@ in
settings = {
PAPERLESS_URL = "https://paperless.sbr.pm";
PAPERLESS_EMPTY_TRASH_DIR = "/neo/paperless/trash";
- PAPERLESS_FILENAME_FORMAT = "{{ created_year }}/{{ document_type }}/{{ created }} - {{ correspondent }} - {{ title }} - {{ asn }} ({{ doc_pk }})";
+ PAPERLESS_FILENAME_FORMAT = "{{ created_year }}/{{ created | datetime('%Y%m%dT%H%M%S') }}{% if correspondent != 'none' %}=={{ correspondent | slugify | replace('-', '=') }}{% endif %}--{{ title | slugify }}{% if document_type != 'none' or tag_name_list %}__{% if document_type != 'none' %}{{ document_type | slugify | replace('-', '') }}{% endif %}{% if document_type != 'none' and tag_name_list %}_{% endif %}{% if tag_name_list %}{{ tag_name_list | join('_') }}{% endif %}{% endif %}";
PAPERLESS_FILENAME_FORMAT_REMOVE_NONE = "true";
};
};