mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-21 22:16:44 +01:00
Chore: Enable ruff FBT (#8645)
This commit is contained in:
parent
b274665e21
commit
e560fa3be0
27 changed files with 133 additions and 65 deletions
|
|
@ -337,7 +337,7 @@ class Document(SoftDeleteModel, ModelWithOwner):
|
|||
def archive_file(self):
|
||||
return open(self.archive_path, "rb")
|
||||
|
||||
def get_public_filename(self, archive=False, counter=0, suffix=None) -> str:
|
||||
def get_public_filename(self, *, archive=False, counter=0, suffix=None) -> str:
|
||||
"""
|
||||
Returns a sanitized filename for the document, not including any paths.
|
||||
"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue