Merge pull request #3274 from InspectorCaracal/patch-11

Fix nattributes typo
This commit is contained in:
Griatch 2023-09-20 22:58:00 +02:00 committed by GitHub
commit bd7c635d93

View file

@ -1503,7 +1503,7 @@ class DefaultObject(ObjectDB, metaclass=TypeclassBase):
self.attributes.batch_add(*cdict["attributes"])
if cdict.get("nattributes"):
# this should be a dict of nattrname:value
for key, value in cdict["nattributes"]:
for key, value in cdict["nattributes"].items():
self.nattributes.add(key, value)
del self._createdict