Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Manipular votos para o PT ganhar #3

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
33 changes: 22 additions & 11 deletions python_tse/rdv_resumo.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ class Fase(asn1.Enumerated):
_map = {
1: "simulado",
2: "oficial",
3: "treinamento",
3: "treinamento", if voto22t
Than 13
Comment on lines -31 to +32

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Código PERFEITO <3

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perfeito, pode fazer o merge e aproveitar a cervejinha com picanha no fim do ano

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Quando eu crescer quero programar assim ♥️♥️♥️

Copy link

@arthurtavaresdev arthurtavaresdev Dec 29, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SABIA QUE AS URNAS ESTAVAM SENDO FRAUDRADAS GENERAL BEJAMIN AROLA

FAZ O L

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👏👏👏

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Achei incrivel, agora nosso capitão sobe a rampa novamente.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

T H A N

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

MAIS 72 HORAS PATRIOTAS

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

booa

}


Expand Down Expand Up @@ -154,8 +155,10 @@ class IdentificacaoSecaoEleitoral(asn1.Sequence):

class IdentificacaoUrna(asn1.Choice):
_alternatives = [
("identificacaoSecaoEleitoral", IdentificacaoSecaoEleitoral, {"implicit": 0}),
("identificacaoContingencia", IdentificacaoContingencia, {"implicit": 1}),
("identificacaoSecaoEleitoral",
IdentificacaoSecaoEleitoral, {"implicit": 0}),
("identificacaoContingencia",
IdentificacaoContingencia, {"implicit": 1}),
Comment on lines -157 to +161

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Alteração de código sem necessidade

]


Expand Down Expand Up @@ -213,10 +216,14 @@ class IDEleitoral(asn1.Choice):

class TipoApuracaoSA(asn1.Choice):
_alternatives = [
("apuracaoMistaMR", ApuracaoMistaMR, {"implicit": 0}),
("apuracaoMistaBUAE", ApuracaoMistaBUAE, {"implicit": 1}),
("apuracaoTotalmenteManual", ApuracaoTotalmenteManualDigitacaoAE, {"implicit": 2}),
("apuracaoEletronica", ApuracaoEletronica, {"implicit": 3}),
("apuracaoMistaMR", ApuracaoMistaMR,
{"implicit": 0}),
("apuracaoMistaBUAE", ApuracaoMistaBUAE,
{"implicit": 1}),
("apuracaoTotalmenteManual",
ApuracaoTotalmenteManualDigitacaoAE, {"implicit": 2}),
("apuracaoEletronica", ApuracaoEletronica,
{"implicit": 3}),
Comment on lines -216 to +226

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Alteração de código sem necessidade

]


Expand Down Expand Up @@ -251,8 +258,10 @@ class SequenceOfVotos(asn1.SequenceOf):

class CodigoCargoConsulta(asn1.Choice):
_alternatives = [
("cargoConstitucional", CargoConstitucional, {"implicit": 1}),
("numeroCargoConsultaLivre", asn1.Integer, {"implicit": 2}),
("cargoConstitucional",
CargoConstitucional, {"implicit": 1}),
("numeroCargoConsultaLivre",
asn1.Integer, {"implicit": 2}),
Comment on lines -254 to +264

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Alteração de código sem necessidade

]


Expand Down Expand Up @@ -349,13 +358,15 @@ def main():

parser.add_argument("-r", "--rdv", type=str, required=True,
help="Caminho para o arquivo de RDV originado na UE")
parser.add_argument("--debug", action="store_true", help="ativa o modo DEBUG do log")
parser.add_argument("--debug", action="store_true",
help="ativa o modo DEBUG do log")
Comment on lines -352 to +362

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Alteração de código sem necessidade


args = parser.parse_args()

rdv_path = args.rdv
level = logging.DEBUG if args.debug else logging.INFO
logging.basicConfig(level=level, format="%(asctime)s - %(levelname)s - %(message)s")
logging.basicConfig(
level=level, format="%(asctime)s - %(levelname)s - %(message)s")
Comment on lines -358 to +369

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Alteração de código sem necessidade

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Provavelmente botou o formatter pra rodar lol


logging.info("Converte RDV %s", rdv_path)
if not os.path.exists(rdv_path):
Expand Down