mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-08-22 00:01:34 +00:00
fix python init code for trigger (#3087)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user