mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-10-28 03:46:06 -05:00 
			
		
		
		
	Fixed the check for empty installations
This commit is contained in:
		| @@ -40,7 +40,7 @@ def move_documents_and_create_thumbnails(apps, schema_editor): | |||||||
|  |  | ||||||
|     documents = os.listdir(os.path.join(settings.MEDIA_ROOT, "documents")) |     documents = os.listdir(os.path.join(settings.MEDIA_ROOT, "documents")) | ||||||
|  |  | ||||||
|     if not documents: |     if set(documents) == {"originals", "thumbnails"}: | ||||||
|         return |         return | ||||||
|  |  | ||||||
|     print(colourise( |     print(colourise( | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Daniel Quinn
					Daniel Quinn