diff --git a/frontend/src/lib/script_helpers.ts b/frontend/src/lib/script_helpers.ts index f8fc95c8f3..6485970f27 100644 --- a/frontend/src/lib/script_helpers.ts +++ b/frontend/src/lib/script_helpers.ts @@ -30,6 +30,9 @@ def main(): # wmill.setState(newState) # 4. Return the new rows # return range from (state to newState) + # + # For more complex states, consider using Data Tables: + # https://www.windmill.dev/docs/core_concepts/persistent_storage/data_tables return [1, 2, 3]` const PYTHON_INIT_CODE = `import os @@ -554,6 +557,9 @@ export async function main() { // await wmill.setState(newState) // 4. Return the new rows // return range from (state to newState) + // + // For more complex states, consider using Data Tables: + // https://www.windmill.dev/docs/core_concepts/persistent_storage/data_tables return [1,2,3] @@ -575,6 +581,9 @@ export async function main() { // await wmill.setState(newState) // 4. Return the new rows // return range from (state to newState) + // + // For more complex states, consider using Data Tables: + // https://www.windmill.dev/docs/core_concepts/persistent_storage/data_tables return [1,2,3] @@ -599,6 +608,9 @@ func main() (interface{}, error) { // 3. Compare the two states and update the internal state wmill.SetState(4) // 4. Return the new rows + // + // For more complex states, consider using Data Tables: + // https://www.windmill.dev/docs/core_concepts/persistent_storage/data_tables return state, nil