mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2026-11-20 12:36:53 +00:00
Runs pyupgrade to Python 3.8+ and adds a hook for it
This commit is contained in:
1 parent
7909b30b4b
commit
3003bdd507
34 files changed
+113
-109
No files matched your search
@@ -133,7 +133,7 @@ def generate_filename(doc, counter=0, append_gpg=True, archive_filename=False):
|
||||
tags = defaultdictNoStr(lambda: slugify(None), many_to_dictionary(doc.tags))
|
||||
|
||||
tag_list = pathvalidate.sanitize_filename(
|
||||
",".join(sorted([tag.name for tag in doc.tags.all()])),
|
||||
",".join(sorted(tag.name for tag in doc.tags.all())),
|
||||
replacement_text="-",
|
||||
)
|
||||
|
||||
|
||||
Reference in new issue
Block a user