fix ShopRegister

This commit is contained in:
HibiKier
2022-06-03 01:14:34 +08:00
parent 252d45c79b
commit 41c22f4314
2 changed files with 3 additions and 0 deletions
+2
View File
@@ -31,6 +31,8 @@ class ShopRegister(dict):
for key, value in kwargs.items():
if key.startswith(f"{n}_"):
_temp_kwargs[key.split("_", maxsplit=1)[-1]] = value
else:
_temp_kwargs[key] = value
self._data[n] = {
"price": p,
"des": d,