mirror of
https://github.com/codex-storage/deluge.git
synced 2025-02-17 13:56:47 +00:00
Send all torrent status keys if keys is [].
This commit is contained in:
parent
ae81a28e6b
commit
ff1391b8bf
@ -169,6 +169,9 @@ class Torrent:
|
|||||||
# Create the desired status dictionary and return it
|
# Create the desired status dictionary and return it
|
||||||
status_dict = {}
|
status_dict = {}
|
||||||
|
|
||||||
|
if len(keys) == 0:
|
||||||
|
status_dict = full_status
|
||||||
|
else:
|
||||||
for key in keys:
|
for key in keys:
|
||||||
if key in full_status:
|
if key in full_status:
|
||||||
status_dict[key] = full_status[key]
|
status_dict[key] = full_status[key]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user