From e11c3f4e9cfbe6eeb5e9d7ed6f67010485173735 Mon Sep 17 00:00:00 2001 From: Louis Abraham Date: Fri, 26 Jan 2024 15:50:23 +0100 Subject: [PATCH] fix python init code for trigger (#3087) --- frontend/src/lib/init_scripts/python_init_code_trigger.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/lib/init_scripts/python_init_code_trigger.ts b/frontend/src/lib/init_scripts/python_init_code_trigger.ts index c3038a7d4d..3895317060 100644 --- a/frontend/src/lib/init_scripts/python_init_code_trigger.ts +++ b/frontend/src/lib/init_scripts/python_init_code_trigger.ts @@ -4,9 +4,9 @@ export default `import wmill def main(): # A common trigger script would follow this pattern: # 1. Get the last saved state - # const state = wnmill.get_state() + # state = wmill.get_state() # 2. Get the actual state from the external service - # const newState = ... + # newState = ... # 3. Compare the two states and update the internal state # wmill.setState(newState) # 4. Return the new rows