Commit 332ced8a authored by Marc-Andre Santune's avatar Marc-Andre Santune
Browse files

define __setitem__ method

parent 4db8f648
......@@ -38,6 +38,9 @@ class BuildingGeneric:
def __getitem__(self, item):
return self._building.get(item)
def __setitem__ (self, key, item):
self._building[key] = item
# ----------------- Building level ---------------------
def post_building(self, payload) -> None:
"""Post a new building"""
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment