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:
parent
ca2bd380cf
commit
a5c455a305
|
@ -338,7 +338,7 @@ class NamespaceWrapper:
|
||||||
def delete(self, key):
|
def delete(self, key):
|
||||||
if isinstance(key, str) and not self.parse_keys:
|
if isinstance(key, str) and not self.parse_keys:
|
||||||
key = [key]
|
key = [key]
|
||||||
self.db.delete_item(self.namespace, key)
|
return self.db.delete_item(self.namespace, key)
|
||||||
|
|
||||||
def __len__(self):
|
def __len__(self):
|
||||||
return self.db.ns_length(self.namespace)
|
return self.db.ns_length(self.namespace)
|
||||||
|
|
Loading…
Reference in New Issue