Skip to content

Remove redundant code data.update(data2) #85

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions