Mistake in U72 - Remove viktor.api module documentation

I’ve spotted a small mistake, the code for the U72
To replace update_properties, this is sugested:

  • entity.update_properties(new_params_subset)
  • params = entity.last_saved_params
  • new_params = params.update(new_params_subset)
  • entity.set_params(new_params)

but the params.update() doesn’t return the new_params, rather is updates the params itself.
This causes an error at set_params as ‘new_params’ is null or empty at that time. I fixed it by sending params here, and that worked.
So either I did something differently or you might want to adjust that in the docs.

Good call, thank you.