imls-dmt / imls-dmt-api

imls-dmt-api
Apache License 2.0
1 stars 1 forks source link

Add all default numeric answers from default survey to "ratings" array. #94

Open hbarrett opened 2 years ago

hbarrett commented 2 years ago

For the /api/submit_survey route add all numeric answers from the default survey to the "ratings" array in the learning resource for that survey.

hbarrett commented 2 years ago

The value written to the "ratings" array will be an average of all answers to a single response. For example if there were 2 responses, then the "ratings" array might look like this: [2.3,3.4]