mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-21 20:14:51 +00:00
Fix batch status caching for when a key doesn't exist in the cache.
This commit is contained in:
parent
dd395b8c9c
commit
5c38bfdbe7
1 changed files with 2 additions and 0 deletions
|
@ -305,6 +305,8 @@ class TorrentView(listview.ListView, component.Component):
|
|||
new = status[torrent_id]
|
||||
diff = {}
|
||||
for key in new.keys():
|
||||
if not key in old.keys():
|
||||
continue
|
||||
# There is a difference, so lets add it to our new dict
|
||||
if new[key] != old[key]:
|
||||
diff[key] = new[key]
|
||||
|
|
Loading…
Add table
Reference in a new issue