LearnOnDemandSystems / docs

Learn on Demand Systems (LODS) is now Skillable.
https://www.skillable.com
11 stars 96 forks source link

Incorrect documentation of setActivityResult in Python #1036

Closed r-b-g-b closed 11 months ago

r-b-g-b commented 11 months ago

Description of proposed changes:

The docs say you can set a scored result using:

setActivityResult(0.5);

but that results in the message "Script did not return a boolean or scored result."

Instead you have to pass the score as a keyword argument to work.

setActivityResult(score=0.5)

Link to the document: https://docs.skillable.com/lod/activities.md#python

Screenshots (optional):

dillonreese commented 11 months ago

Thanks @r-b-g-b. This document has been updated.