mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-07 08:58:38 +00:00
Send all torrent status keys if keys is [].
This commit is contained in:
parent
ae81a28e6b
commit
ff1391b8bf
1 changed files with 6 additions and 3 deletions
|
@ -169,8 +169,11 @@ class Torrent:
|
||||||
# Create the desired status dictionary and return it
|
# Create the desired status dictionary and return it
|
||||||
status_dict = {}
|
status_dict = {}
|
||||||
|
|
||||||
for key in keys:
|
if len(keys) == 0:
|
||||||
if key in full_status:
|
status_dict = full_status
|
||||||
status_dict[key] = full_status[key]
|
else:
|
||||||
|
for key in keys:
|
||||||
|
if key in full_status:
|
||||||
|
status_dict[key] = full_status[key]
|
||||||
|
|
||||||
return status_dict
|
return status_dict
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue