Skip to content

Use a new method to set progress - setting in the interview order block breaks stuff #926

@nonprofittechy

Description

@nonprofittechy

Do it in a different way. Maybe:

Create a DADict, like this:

---
# interview order
question: |
  ...
  set_progress_to[40] # Will run the set_progress_to block one time, for each unique index value. it won't reset it to that value
---
objects:
  set_progress_to: DADict
---
code: |
  set_progress(float(i))
  set_progress_to[i] = True

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions