parent
2a0e90bb96
commit
fa6b772674
1 changed files with 2 additions and 2 deletions
|
@ -143,8 +143,8 @@ class Context:
|
||||||
|
|
||||||
def unset_data(self, key: str):
|
def unset_data(self, key: str):
|
||||||
if key == "":
|
if key == "":
|
||||||
self._doc = {}
|
self._data = {}
|
||||||
data = self._doc
|
data = self._data
|
||||||
keys = key.split(".")
|
keys = key.split(".")
|
||||||
for k in keys[:-1]:
|
for k in keys[:-1]:
|
||||||
data = data[k]
|
data = data[k]
|
||||||
|
|
Loading…
Reference in a new issue