Example #1
0
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)
Example #2
0
def showOwnScore(team):
    songList=getSong()

    teamInfo=[]
    teamInfo.append(team)
    teamInfo.append(TEAMS[int(team)-1][1])

    scoreList=[]
    for song in songList:
        songScore=getTeamSongTop(team,song['SongID'],10000)
        uniqSongScore = getUniqPlayerScore(score=songScore,count=3)
        scoreList.append( uniqSongScore )
    return render_template('score.html',TEAMS=TEAMS,songList=songList,scoreList=scoreList,teamInfo=teamInfo)