diff --git a/stand.py b/stand.py index b4c5ff9..b73b333 100755 --- a/stand.py +++ b/stand.py @@ -52,11 +52,10 @@ def update_adb(evt): pgroup = evt.args["context"]["pgroup"] index = evt.args["data"]["index"] index = datetime.fromisoformat(index) # nicegui converts datetime to str - df = lib.read(pgroup, date_range=[index]).data - col_id = evt.args["colId"] new_val = evt.args["newValue"] + df = lib.read(pgroup, date_range=[index]).data df.at[index, col_id] = new_val lib.update(pgroup, df)