Ejemplo n.º 1
0
def HotFuzzPlayer(playerguess):
    #returns a tuple, index [0] is for playername, index [2] is for playerID
    return extractOne(playerguess, playerdict)    
Ejemplo n.º 2
0
	def get(self, playerguess):
		playername = extractOne(playerguess, playerdict)[0]
		data = fixer([d.__dict__ for d in Players.query.filter_by(PLAYER_NAME=playername)])
		return jsonify({playername: data})
Ejemplo n.º 3
0
def HotFuzzTeam(teamguess):
    #returns a tuple, index [0] is for teamname, index [2] is for teamID
    return extractOne(teamguess, teamdict)
Ejemplo n.º 4
0
	def get(self, teamguess):
		teamname = extractOne(teamguess, teamdict)[0]
		data = fixer([d.__dict__ for d in Teams.query.filter_by(TEAM_NAME=teamname)])
		return jsonify({teamname: data})