open-resources / scripts

Repo of converter scripts to and from MD files to various platform file formats.
3 stars 0 forks source link

Moving `correct_answer` key/value pair from data['params'] to data['vars'] #9

Closed firasm closed 3 years ago

firasm commented 3 years ago

What would be the consequence (if any) to the md_to_pl script if the correct_answer was moved from data['params'] to data['vars']?

firasm commented 3 years ago

This is not advisable based on the PL docs.

firasm commented 3 years ago

Actually according to the prairie learn docs, the "correct_answers" need to be in the data not data["params"]

gbovett commented 3 years ago

I have been using data['params'] for all non answer fields and data['correct_answers'] for possible answers. I have local version of the md sample file that I modify as needed as im developing the conversion script; I was going to wait for our next meeting before overwriting the github file but can post it if you would like

firasm commented 3 years ago

Perfect, that's good - that's what the docs recommend/require.

I am actively updating the template files at the moment.

I've done several cleanup things:

firasm commented 3 years ago

A version of this has been implemented in PR #17. This will come to bite us in the butt though, so let this be some foresight...