downloads: change len() to sum()
This commit is contained in:
parent
643d2cc6dd
commit
99182e3e79
@ -1245,4 +1245,4 @@ class DownloadManager(QAbstractListModel):
|
||||
Return:
|
||||
The number of unfinished downloads.
|
||||
"""
|
||||
return len([1 for download in self.downloads if not download.done])
|
||||
return sum(1 for download in self.downloads if not download.done)
|
||||
|
Loading…
Reference in New Issue
Block a user