mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-20 03:24:54 +00:00
[Core] Fix return type in t.get_file_progress
This commit is contained in:
parent
78851becf2
commit
bd80ad62a0
1 changed files with 1 additions and 1 deletions
|
@ -583,7 +583,7 @@ class Torrent(object):
|
|||
def get_file_progress(self):
|
||||
"""Returns the file progress as a list of floats.. 0.0 -> 1.0"""
|
||||
if not self.handle.has_metadata():
|
||||
return 0.0
|
||||
return []
|
||||
|
||||
file_progress = self.handle.file_progress()
|
||||
ret = []
|
||||
|
|
Loading…
Add table
Reference in a new issue