mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-11 09:07:18 +01:00
excluded the lockfile from the sanity checker.
This commit is contained in:
parent
b3daf0efc3
commit
3f03cbf66c
1 changed files with 4 additions and 0 deletions
|
|
@ -46,6 +46,10 @@ def check_sanity():
|
||||||
for f in files:
|
for f in files:
|
||||||
present_files.append(os.path.normpath(os.path.join(root, f)))
|
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():
|
for doc in Document.objects.all():
|
||||||
# Check sanity of the thumbnail
|
# Check sanity of the thumbnail
|
||||||
if not os.path.isfile(doc.thumbnail_path):
|
if not os.path.isfile(doc.thumbnail_path):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue