Fix updating key 0 in WorkerTaskManager

This commit is contained in:
shortcutme 2019-12-21 02:55:22 +01:00
parent bde8b30d5c
commit 7ca09ba75b
No known key found for this signature in database
GPG key ID: 5B63BAE6CB9613AE

View file

@ -41,7 +41,7 @@ class CustomSortedList(MutableSequence):
def updateItem(self, value, update_key=None, update_value=None): def updateItem(self, value, update_key=None, update_value=None):
self.remove(value) self.remove(value)
if update_key: if update_key is not None:
value[update_key] = update_value value[update_key] = update_value
self.append(value) self.append(value)