mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-10-30 03:56:23 -05:00 
			
		
		
		
	The exporter now re-dates the files
This commit is contained in:
		| @@ -1,5 +1,6 @@ | ||||
| import gnupg | ||||
| import os | ||||
| import time | ||||
|  | ||||
| from django.conf import settings | ||||
| from django.core.management.base import BaseCommand, CommandError | ||||
| @@ -47,6 +48,10 @@ class Command(BaseCommand): | ||||
|  | ||||
|             with open(target, "wb") as f: | ||||
|                 f.write(GnuPG.decrypted(document.pdf)) | ||||
|                 os.utime(target, times=( | ||||
|                     int(time.mktime(document.created.timetuple())), | ||||
|                     int(time.mktime(document.modified.timetuple())) | ||||
|                 )) | ||||
|  | ||||
|     def _render(self, text, verbosity): | ||||
|         if self.verbosity >= verbosity: | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Daniel Quinn
					Daniel Quinn