def submission_successful(self, participant):
num_approved = len(Participant.query.filter_by(status="<STR_LIT>").all())<EOL>current_generation = participant.nodes()[<NUM_LIT:0>].generation<EOL>if (<EOL>num_approved % self.generation_size == <NUM_LIT:0><EOL>and (current_generation % <NUM_LIT:10> + <NUM_LIT:1>) == <NUM_LIT:0><EOL>):<EOL><INDENT>for e in self.models.RogersEnvironment.query.all():<EOL><INDENT>e.step()<EOL><DEDENT><DEDENT>
Run when a participant submits successfully.