def get_persisted_data(self, other_answers):
answers = self.get_answers_for_student()<EOL>ret = {<EOL>"<STR_LIT>": answers.get_vote(<NUM_LIT:0>),<EOL>"<STR_LIT>": answers.get_rationale(<NUM_LIT:0>),<EOL>"<STR_LIT>": answers.get_vote(<NUM_LIT:1>),<EOL>"<STR_LIT>": answers.get_rationale(<NUM_LIT:1>),<EOL>}<EOL>if answers.has_revision(<NUM_LIT:0>) and not answers.has_revision(<NUM_LIT:1>):<EOL><INDENT>ret['<STR_LIT>'] = other_answers<EOL><DEDENT>if answers.has_revision(<NUM_LIT:1>):<EOL><INDENT>ret['<STR_LIT>'] = self.correct_answer<EOL>ret['<STR_LIT>'] = self.correct_rationale<EOL><DEDENT>return ret<EOL>
Formats a usable dict based on what data the user has persisted
Adds the other answers and correct answer/rationale when needed