def league_scores(self, total_data, time):
data = []<EOL>for league, score in self.supported_leagues(total_data):<EOL><INDENT>item = {'<STR_LIT>': league, '<STR_LIT>': score['<STR_LIT>'],<EOL>'<STR_LIT>': score['<STR_LIT:result>']['<STR_LIT>'],<EOL>'<STR_LIT>': score['<STR_LIT:result>']['<STR_LIT>'],<EOL>'<STR_LIT>': score['<STR_LIT>']}<EOL>data.append(item)<EOL><DEDENT>self.generate_output({'<STR_LIT>': data, '<STR_LIT:time>': time})<EOL>
Store output of fixtures based on league and time to a JSON file