mirror of
				https://github.com/janeczku/calibre-web
				synced 2025-10-31 07:13:02 +00:00 
			
		
		
		
	Fix progress indication for emails that have been completed.
This commit is contained in:
		| @@ -189,7 +189,15 @@ class TaskEmail(CalibreTask): | |||||||
|         if self.asyncSMTP is not None: |         if self.asyncSMTP is not None: | ||||||
|             return self.asyncSMTP.getTransferStatus() |             return self.asyncSMTP.getTransferStatus() | ||||||
|         else: |         else: | ||||||
|             return 0 |             return self._progress | ||||||
|  |  | ||||||
|  |     @progress.setter | ||||||
|  |     def progress(self, x): | ||||||
|  |         """This gets explicitly set when handle(Success|Error) are called. In this case, remove the SMTP connection""" | ||||||
|  |         if x == 1: | ||||||
|  |             self.asyncSMTP = None | ||||||
|  |             self._progress = x | ||||||
|  |  | ||||||
|  |  | ||||||
|     @classmethod |     @classmethod | ||||||
|     def _get_attachment(cls, bookpath, filename): |     def _get_attachment(cls, bookpath, filename): | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 blitzmann
					blitzmann