Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
D
douban-api-proxy
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
captainwong
douban-api-proxy
Commits
9ce2e8ea
Commit
9ce2e8ea
authored
Aug 23, 2020
by
blitzmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix progress indication for emails that have been completed.
parent
414043de
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
email.py
cps/tasks/email.py
+9
-1
No files found.
cps/tasks/email.py
View file @
9ce2e8ea
...
...
@@ -189,7 +189,15 @@ class TaskEmail(CalibreTask):
if
self
.
asyncSMTP
is
not
None
:
return
self
.
asyncSMTP
.
getTransferStatus
()
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
def
_get_attachment
(
cls
,
bookpath
,
filename
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment