fix python init code for trigger (#3087)

This commit is contained in:
Louis Abraham
2024-01-26 15:50:23 +01:00
committed by GitHub
parent fa8a6e8c3d
commit 5e634214e9
@@ -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