Fixed issue #13

This commit is contained in:
2016-10-06 09:59:26 +02:00
parent db5ece431b
commit ffed1ef6e8

View File

@@ -224,11 +224,12 @@ def update(request, ls, season, cur_md):
m = Match(matchID=unicode(match['matchID']), m = Match(matchID=unicode(match['matchID']),
matchDateTime=match['matchDateTime'],
pointsTeam1=pointsTeam1, pointsTeam1=pointsTeam1,
pointsTeam2=pointsTeam2, pointsTeam2=pointsTeam2,
finished=bool(match['matchIsFinished']), finished=bool(match['matchIsFinished']),
) )
m.save(update_fields=['pointsTeam1', 'pointsTeam2', 'finished']) m.save(update_fields=['matchDateTime', 'pointsTeam1', 'pointsTeam2', 'finished'])
pointsTeam1=-1 pointsTeam1=-1
pointsTeam2=-1 pointsTeam2=-1