Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main'
Browse files Browse the repository at this point in the history
  • Loading branch information
lenlino committed Jun 1, 2024
2 parents 6e9920d + 1ddfe7f commit c3c783b
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 @@ -155,23 +155,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 c3c783b

Please sign in to comment.