A community-supported supercharged document management system: scan, index and archive all your documents
Python aiangulararchivingdjangodmsdocument-managementdocument-management-systemllmmachine-learningocroptical-character-recognitionpdf
excluded the lockfile from the sanity checker.
jonaswinkler3f03cbf66c44
diff --git a/src/documents/sanity_checker.py b/src/documents/sanity_checker.pyindex e3c4b1aec..bc0b689d4 100644--- a/src/documents/sanity_checker.py+++ b/src/documents/sanity_checker.py@@ -46,6 +46,10 @@ def check_sanity():for f in files:present_files.append(os.path.normpath(os.path.join(root, f)))+ lockfile = os.path.normpath(settings.MEDIA_LOCK)+ if lockfile in present_files:+ present_files.remove(lockfile)+for doc in Document.objects.all():# Check sanity of the thumbnailif not os.path.isfile(doc.thumbnail_path):