validate thumbnails after filesystem rescan

This commit is contained in:
simon 2021-11-12 17:12:53 +07:00
parent b1c82759bb
commit 58303047aa
No known key found for this signature in database
GPG Key ID: 2C15AA5E89985DD4

View File

@ -17,7 +17,7 @@ from home.src.reindex import (
reindex_old_documents, reindex_old_documents,
scan_filesystem, scan_filesystem,
) )
from home.src.thumbnails import ThumbManager from home.src.thumbnails import ThumbManager, validate_thumbnails
CONFIG = AppConfig().config CONFIG = AppConfig().config
REDIS_HOST = os.environ.get("REDIS_HOST") REDIS_HOST = os.environ.get("REDIS_HOST")
@ -167,6 +167,7 @@ def kill_dl(task_id):
def rescan_filesystem(): def rescan_filesystem():
"""check the media folder for mismatches""" """check the media folder for mismatches"""
scan_filesystem() scan_filesystem()
validate_thumbnails()
@shared_task @shared_task