def league_scores(self, total_data, time, show_upcoming, use_12_hour_format):
headers = ['<STR_LIT>', '<STR_LIT>', '<STR_LIT>',<EOL>'<STR_LIT>', '<STR_LIT>']<EOL>result = [headers]<EOL>league = total_data['<STR_LIT>']['<STR_LIT:name>']<EOL>result.extend([league,<EOL>score['<STR_LIT>']['<STR_LIT:name>'],<EOL>score['<STR_LIT>']['<STR_LIT>']['<STR_LIT>'],<EOL>score['<STR_LIT>']['<STR_LIT>']['<STR_LIT>'],<EOL>score['<STR_LIT>']['<STR_LIT:name>']]<EOL>for score in total_data['<STR_LIT>'])<EOL>self.generate_output(result)<EOL>
Store output of fixtures based on league and time to a CSV file