import python code as raw to avoid reindent

This commit is contained in:
Ruben Fiszel
2023-02-05 16:03:03 +01:00
parent 20ea3424e0
commit cca5ea8644
6 changed files with 122 additions and 115 deletions
@@ -0,0 +1,14 @@
import wmill
def main():
# A common trigger script would follow this pattern:
# 1. Get the last saved state
# const state = wnmill.get_state()
# 2. Get the actual state from the external service
# const newState = ...
# 3. Compare the two states and update the internal state
# wmill.setState(newState)
# 4. Return the new rows
# return range from (state to newState)
return [1, 2, 3]