def team_scores(self, team_scores, time):
data = []<EOL>for score in team_scores['<STR_LIT>']:<EOL><INDENT>if score['<STR_LIT:status>'] == '<STR_LIT>':<EOL><INDENT>item = {'<STR_LIT:date>': score["<STR_LIT>"].split('<STR_LIT:T>')[<NUM_LIT:0>],<EOL>'<STR_LIT>': score['<STR_LIT>']['<STR_LIT:name>'],<EOL>'<STR_LIT>': score['<STR_LIT>']['<STR_LIT>']['<STR_LIT>'],<EOL>'<STR_LIT>': score['<STR_LIT>']['<STR_LIT>']['<STR_LIT>'],<EOL>'<STR_LIT>': score['<STR_LIT>']['<STR_LIT:name>']}<EOL>data.append(item)<EOL><DEDENT><DEDENT>self.generate_output({'<STR_LIT>': data})<EOL>
Store output of team scores to a JSON file