Fix: ignore logo file from sanity checker (#9946)

This commit is contained in:
shamoon 2025-05-16 17:30:34 -07:00 committed by GitHub
parent 3365fc92fd
commit 6647b32ac0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 17 additions and 0 deletions

View file

@ -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()