fixup: context.unset_data

This commit is contained in:
Jiří Kalvoda 2024-03-17 22:30:48 +01:00
parent fb80c61139
commit 71e5c5bbdc

View file

@ -170,7 +170,7 @@ class Context:
def unset_data(self, key: str):
if key == "":
self._doc = {}
data = self._doc
data = self._data
keys = key.split(".")
for k in keys[:-1]:
data = data[k]