Skip to content

Resolve "Make SQL formatting optional in `CoderunnerSQLQuestion`"

Closes #48 (closed)

The initial problem was detected on a SQL Question, where the format had indentations that made it difficult to read as shown in the following image:

image

By implementing the parse_with_parser function in utils.py now it is possible to define a parser and custom parameters, for the same question, only the indentation was disabled, the result is as follows:

image

The parser is now applied to all the CodeRunner-type questions, therefore also a new attribute is mandatory, parser: in the YAML files.

Merge request reports

Loading