Add slot to datastorage set response

This commit is contained in:
NewSoupVi
2024-08-09 00:11:11 +02:00
committed by GitHub
parent 6803c373e5
commit 03442621f4

View File

@@ -1857,6 +1857,7 @@ async def process_client_cmd(ctx: Context, client: Client, args: dict):
args["cmd"] = "SetReply"
value = ctx.stored_data.get(args["key"], args.get("default", 0))
args["original_value"] = copy.copy(value)
args["slot"] = client.slot
for operation in args["operations"]:
func = modify_functions[operation["operation"]]
value = func(value, operation["value"])