mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-06 14:55:07 +01:00
Fixed the check for empty installations
This commit is contained in:
parent
034b96277c
commit
bfad4560e1
1 changed files with 1 additions and 1 deletions
|
|
@ -40,7 +40,7 @@ def move_documents_and_create_thumbnails(apps, schema_editor):
|
|||
|
||||
documents = os.listdir(os.path.join(settings.MEDIA_ROOT, "documents"))
|
||||
|
||||
if not documents:
|
||||
if set(documents) == {"originals", "thumbnails"}:
|
||||
return
|
||||
|
||||
print(colourise(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue