From ce960ac842ea06ca8236ac63fb3db1cd873da809 Mon Sep 17 00:00:00 2001 From: Ikko Eltociear Ashimine Date: Fri, 15 Nov 2024 19:32:00 +0900 Subject: [PATCH] chore: update table_guard_edits.py (#2055) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Typos --------- Co-authored-by: Fred Lefévère-Laoide <90181748+FredLL-Avaiga@users.noreply.github.com> Co-authored-by: Fabien Lelaquais <86590727+FabienLelaquais@users.noreply.github.com> --- doc/gui/examples/controls/table_guard_edits.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/gui/examples/controls/table_guard_edits.py b/doc/gui/examples/controls/table_guard_edits.py index db65842c4d..67b7ce75d4 100644 --- a/doc/gui/examples/controls/table_guard_edits.py +++ b/doc/gui/examples/controls/table_guard_edits.py @@ -88,7 +88,7 @@ def check_add(state: State, var_name: str, payload: dict): def force_salary(state: State, var_name: str, payload: dict): # Get the salary proposal from the callback's payload proposed_salary = payload["value"] - # Round it the the nearest multiple of 5000 + # Round it to the nearest multiple of 5000 proposed_salary = round(proposed_salary / 500) * 500 # Set it as the value to be stored in the dataset payload["value"] = proposed_salary