fix calculation of wwe title

This commit is contained in:
James Turk 2012-07-15 20:57:59 -04:00
parent 506fcc9ebe
commit ea06882aff

View File

@ -143,10 +143,11 @@ def league(request, league_id):
# do WWE belt check on PPVs # do WWE belt check on PPVs
if belt_name == 'world': if belt_name == 'world':
belt_name = 'wwe' belt_name = 'wwe'
if belts[belt_name]['teams'][ew] > belts[belt_name]['points']: for team in teams:
belts[belt_name]['points'] = belts[belt_name]['teams'][ew] if belts[belt_name]['teams'][team] > belts[belt_name]['points']:
if belts[belt_name]['name'] != ew: belts[belt_name]['points'] = belts[belt_name]['teams'][team]
belts[belt_name]['name'] = ew if belts[belt_name]['name'] != team:
belts[belt_name]['name'] = team
belts[belt_name]['date'] = event.date belts[belt_name]['date'] = event.date
context = { context = {