mirror of
https://github.com/JimmXinu/FanFicFare.git
synced 2026-05-09 05:21:13 +02:00
Don't trust 100% to count jobs finished.
This commit is contained in:
parent
53fe026cfe
commit
b60c83bfd5
1 changed files with 1 additions and 1 deletions
|
|
@ -98,7 +98,7 @@ def do_download_worker(book_list,
|
|||
(percent,msg) = job.notifications.get_nowait()
|
||||
logger.debug("%s<-%s"%(percent,msg))
|
||||
totals[msg] = percent/len(totals)
|
||||
if percent == 1.0:
|
||||
if job.is_finished:
|
||||
count += 1
|
||||
notification(max(0.01,sum(totals.values())), _('%(count)d of %(total)d stories finished downloading')%{'count':count,'total':len(totals)})
|
||||
except Empty:
|
||||
|
|
|
|||
Loading…
Reference in a new issue