mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-10-30 03:56:23 -05:00 
			
		
		
		
	added a progress bar to the reindex command.
This commit is contained in:
		| @@ -1,5 +1,6 @@ | ||||
| import logging | ||||
|  | ||||
| import tqdm | ||||
| from django.conf import settings | ||||
| from whoosh.writing import AsyncWriter | ||||
|  | ||||
| @@ -23,7 +24,7 @@ def index_reindex(): | ||||
|     ix = index.open_index(recreate=True) | ||||
|  | ||||
|     with AsyncWriter(ix) as writer: | ||||
|         for document in documents: | ||||
|         for document in tqdm.tqdm(documents): | ||||
|             index.update_document(writer, document) | ||||
|  | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 jonaswinkler
					jonaswinkler