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 2021-03-14 15:55:08 -04:00
parent ca2bd380cf
commit a5c455a305
1 changed files with 1 additions and 1 deletions

View File

@ -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)