Skip to content

Commit

Permalink
ChangeWeightCommand.py デフォルトの値を変更
Browse files Browse the repository at this point in the history
  • Loading branch information
lenlino committed May 26, 2024
1 parent e355da1 commit 1ddfe7f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions commands/ChangeWeightCommand.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,23 +156,23 @@ async def button_callback_send(self, button, interaction):
for k, v in weight.main.w3.model_dump().items():
base_value = base_weight_model["main"]["w3"][k]
if base_value == v:
weight_model["main"]["w3"][k] = 0
weight_model["main"]["w3"][k] = -1
for k, v in weight.main.w4.model_dump().items():
base_value = base_weight_model["main"]["w4"][k]
if base_value == v:
weight_model["main"]["w4"][k] = 0
weight_model["main"]["w4"][k] = -1
for k, v in weight.main.w5.model_dump().items():
base_value = base_weight_model["main"]["w5"][k]
if base_value == v:
weight_model["main"]["w5"][k] = 0
weight_model["main"]["w5"][k] = -1
for k, v in weight.main.w6.model_dump().items():
base_value = base_weight_model["main"]["w6"][k]
if base_value == v:
weight_model["main"]["w6"][k] = 0
weight_model["main"]["w6"][k] = -1
for k, v in weight.weight.model_dump().items():
base_value = base_weight_model["weight"][k]
if base_value == v:
weight_model["weight"][k] = 0
weight_model["weight"][k] = -1

weight = weight.model_validate(weight_model)
attachment = discord.File(fp=io.BytesIO(bytes(weight.model_dump_json(), encoding="utf-8")),
Expand Down

0 comments on commit 1ddfe7f

Please sign in to comment.