Skip to content

Remove redundant code data.update(data2) #85

@firasm

Description

@firasm

This is present in all current questions in the question.md file:

# Update the data object with a new dict
data.update(data2)

Thanks to #83, this is now redundant since this is automatically added by pbs like this:

# Start code added automatically by problem_bank_scripts

# Convert backticks to code blocks/fences in answer choices.
pbh.backticks_to_code_tags(data2)

# Update data with data2
data.update(data2)

# End code added in by problem bank scripts

This means that:

  • all instances of the redundant code should be removed by find and replace,
  • all the templates should be updated,
  • all the tests should be as well.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions