def showSongAllScore(songID): songList=[] songList.append(getOneSong(songID)) scoreList=[] for song in songList: songScore=getSongScores(song['SongID'],10000) scoreList.append( songScore ) #return render_template('score.html',TEAMS=TEAMS,songList=songList,scoreList=scoreList,teamInfo=teamInfo) return render_template('score_song_all.html',TEAMS=TEAMS,songList=songList,scoreList=scoreList)
def showTeamSongScore(teamID,songid): songList=getOneSong(songid) teamInfo=[] teamInfo.append(teamID) teamInfo.append(TEAMS[int(teamID)-1][1]) scoreList=[] scoreList.append(getTeamSongTop(teamID,songid,10000)) return render_template('score_team_detial.html',TEAMS=TEAMS,songList=songList,scoreList=scoreList,teamInfo=teamInfo)