-
Notifications
You must be signed in to change notification settings - Fork 3
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
Feat/logs and signature #57
base: main
Are you sure you want to change the base?
Conversation
…o exista, atualizar caso exista
… e retornar BU salvo
…para receber nome da árvore e arquivo
…s-and-signature # Conflicts: # backend/public/server.js
Eu suspeito que os testes estejam falhando por conta das novas variáveis de ambiente no backend bu service BU_TREE_NAME_TEMPLATE=bus_eleicao_${ELECTION_ID} Se BU_TREE_NAME_TEMPLATE não tiver a chave "${ELECTION_ID}" , não sobe |
@Guilherme-Fumagali , vc consegue adaptar os testes para corrigir isso? https://github.com/larc-logs-transparentes/config/tree/main/hom/tests. Se não, talvez entrar em contato com o @rbullajr |
import dotenv | ||
import requests |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Essa lib está sendo utilizada? Se não, é bom tirar
data = collection.find_one({"eleicoes": election_id, "zona": zone, "secao": section}) | ||
if data is None: | ||
return None | ||
return BuModel(**data) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Eu não entendi essa função. É para buscar um BU por eleição+zona+seção? Já não existia essa função?
{"eleicoes": bu.eleicoes, "zona": bu.zona, "secao": bu.secao}, | ||
{"$set": bu.model_dump()}, | ||
upsert=True | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Por que a gente precisa atualizar o BU? A gente não está trabalhando append-only?
No description provided.