history: return removed item in NamespaceWrapper.delete()

This is required for the "pop" functionality to work correctly.

Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
Arksine committed 2021-03-14 16:50:08 -04:00
1 parent ca2bd380cf
commit a5c455a305
1 file changed
+1 -1
+1 -1
View File
@@ -338,7 +338,7 @@ class NamespaceWrapper:
def delete(self, key):
if isinstance(key, str) and not self.parse_keys:
key = [key]
self.db.delete_item(self.namespace, key)
return self.db.delete_item(self.namespace, key)
def __len__(self):
return self.db.ns_length(self.namespace)