예제 #1
0
    def get_match_betname(self,menupath,bfmarketname,bfselectionname,selcount):
	if (bfmarketmap.has_key(bfmarketname)==True and bfmarketmap[bfmarketname].has_key("marketname")==True):
	    return bfmarketmap[bfmarketname]["selectionorder"][selcount]
	else:
	    team1,team2 = self._teams(menupath)
	    if team1!=None and team2!=None:
		if team1 in bfmarketname:
		    ha="Home"
		elif team2 in bfmarketname:
		    ha="Away"
		else:
		    return None
	    else:
		return None
	    for key in bfhamarketmap:
		if key in bfmarketname:
		    return bfhamarketmap[key]["selectionorder"][selcount]
	    return None
예제 #2
0
    def get_match_betmarket(self,menupath,bfmarketname):
	if (bfmarketmap.has_key(bfmarketname)==True and bfmarketmap[bfmarketname].has_key("marketname")==True):
	    return bfmarketmap[bfmarketname]["marketname"]
	else:
	    team1,team2 = self._teams(menupath)
	    if team1!=None and team2!=None:
		if team1 in bfmarketname:
		    ha="Home"
		elif team2 in bfmarketname:
		    ha="Away"
		else:
		    return None
	    else:
		return None
	    for key in bfhamarketmap:
		if key in bfmarketname:
		    return ha+bfhamarketmap[key]["marketname"]
	    return None