示例#1
0
def getMatchResult(match):
	result = {}
	for score in matchpoints.getScore(match):
		points = score[1]
		if points not in result:
			result[points] = []

		result[points].append(score)

	return result
示例#2
0
def getBestScores(num_matches):
	result = {}
	for match in range(1, num_matches):
		try:
			for score in matchpoints.getScore(match):
				points = score[1]
				if points not in result:
					result[points] = []

				result[points].append(score)
		except:
			pass

	return result