copy some msd dicts to avoid changing

This commit is contained in:
Maxim Devaev 2024-10-19 09:25:20 +03:00
parent 90d8e745e3
commit b67a232584

View File

@ -198,12 +198,12 @@ class Storage(_StorageDc):
@property @property
def images(self) -> dict[str, Image]: def images(self) -> dict[str, Image]:
assert self.__images is not None assert self.__images is not None
return self.__images return dict(self.__images)
@property @property
def parts(self) -> dict[str, _Part]: def parts(self) -> dict[str, _Part]:
assert self.__parts is not None assert self.__parts is not None
return self.__parts return dict(self.__parts)
async def reload(self) -> None: async def reload(self) -> None:
self.__watchable_paths = None self.__watchable_paths = None