mirror of
https://github.com/codex-storage/deluge.git
synced 2025-01-12 04:24:27 +00:00
[Core] Fix return type in t.get_file_progress
This commit is contained in:
parent
78851becf2
commit
bd80ad62a0
@ -583,7 +583,7 @@ class Torrent(object):
|
|||||||
def get_file_progress(self):
|
def get_file_progress(self):
|
||||||
"""Returns the file progress as a list of floats.. 0.0 -> 1.0"""
|
"""Returns the file progress as a list of floats.. 0.0 -> 1.0"""
|
||||||
if not self.handle.has_metadata():
|
if not self.handle.has_metadata():
|
||||||
return 0.0
|
return []
|
||||||
|
|
||||||
file_progress = self.handle.file_progress()
|
file_progress = self.handle.file_progress()
|
||||||
ret = []
|
ret = []
|
||||||
|
Loading…
x
Reference in New Issue
Block a user