cmusv / pysheetgrader-core

PySheetGrader -- grading spreadsheet assignments made easy!
Other
2 stars 2 forks source link

Prerequisite cells don't work with check rubric type #26

Open erdogmush opened 2 years ago

erdogmush commented 2 years ago

GRRR - this should have been tested by the person who implemented the pre-req feature! Make sure the test-mode files are updated to include test cases for this.

colelloa commented 1 year ago

issue was due to prereq sometimes being placed in rubric section of yaml, sometimes its own section. added logic in rubric.py as follows:

        rubric_prereq = rubric_dict['prereq'] if 'prereq' in rubric_dict else parsed_comment['prereq'] if 'prereq' in parsed_comment else None