This commit is contained in:
Kevin Chung
2016-03-17 21:06:21 -07:00
parent 11be9d7f0e
commit 742132abdb
2 changed files with 2 additions and 2 deletions

View File

@@ -30,7 +30,7 @@ def scores():
db.session.close()
json = {'standings':[]}
for i, x in enumerate(teams):
json['standings'].append({'pos':i+1, 'id':x.teamid, 'name':x.name,'score':int(x.score)})
json['standings'].append({'pos':i+1, 'id':x.teamid, 'team':x.name,'score':int(x.score)})
return jsonify(json)