Fix: пересчёт очков в _apply_round_results после применения результатов сыгранного тура
All checks were successful
CI/CD Pipeline / build-and-deploy (push) Successful in 4s
All checks were successful
CI/CD Pipeline / build-and-deploy (push) Successful in 4s
This commit is contained in:
parent
e0a897fd67
commit
dd9d01e7e0
1 changed files with 3 additions and 0 deletions
|
|
@ -258,6 +258,9 @@ def _apply_round_results(tournament, games, rd):
|
||||||
s['results'] = list(s.get('results', []))
|
s['results'] = list(s.get('results', []))
|
||||||
s['results'].append(res)
|
s['results'].append(res)
|
||||||
|
|
||||||
|
for s in standings:
|
||||||
|
s['points'] = sum(r.get('score', 0) for r in s.get('results', []))
|
||||||
|
|
||||||
tournament['current_round'] = rd
|
tournament['current_round'] = rd
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue