mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-14 02:27:06 +01:00
Fix: ignore logo file from sanity checker (#9946)
This commit is contained in:
parent
3365fc92fd
commit
6647b32ac0
2 changed files with 17 additions and 0 deletions
|
|
@ -82,6 +82,11 @@ def check_sanity(*, progress=False, scheduled=True) -> SanityCheckMessages:
|
|||
if lockfile in present_files:
|
||||
present_files.remove(lockfile)
|
||||
|
||||
if settings.APP_LOGO:
|
||||
logo_file = Path(settings.MEDIA_ROOT / settings.APP_LOGO).resolve()
|
||||
if logo_file in present_files:
|
||||
present_files.remove(logo_file)
|
||||
|
||||
for doc in tqdm(Document.global_objects.all(), disable=not progress):
|
||||
# Check sanity of the thumbnail
|
||||
thumbnail_path: Final[Path] = Path(doc.thumbnail_path).resolve()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue