Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions cartolafc/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

import requests

from .constants import MERCADO_ABERTO, MERCADO_FECHADO
from .constants import MERCADO_ABERTO, MERCADO_FECHADO, MULTIPLICADOR_CAPITAO
from .errors import CartolaFCError, CartolaFCOverloadError
from .models import (
Atleta,
Expand Down Expand Up @@ -247,7 +247,7 @@ def _calculate_parcial(time: Time, parciais: Dict[int, Atleta]) -> Time:
time.jogados += 1 if tem_parcial else 0

if atleta.is_capitao:
atleta.pontos *= 2
atleta.pontos *= MULTIPLICADOR_CAPITAO

time.pontos += atleta.pontos

Expand Down
2 changes: 2 additions & 0 deletions cartolafc/constants.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
MERCADO_ABERTO = 1
MERCADO_FECHADO = 2

MULTIPLICADOR_CAPITAO = 1.5