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

Corrige as linhas e colunas na exportação via CSV #129

Merged
merged 2 commits into from
Aug 29, 2024
Merged

Conversation

edulauer
Copy link
Member

Corrige as linhas e colunas na exportação via CSV, considerando múltiplas buscas.

Fix #117

@edulauer edulauer added the bug Something isn't working label Aug 29, 2024
@luisssguilherme luisssguilherme merged commit 2d9aca9 into main Aug 29, 2024
1 check passed
@luisssguilherme luisssguilherme deleted the issue-117 branch August 29, 2024 19:39
Copy link
Member

@augusto-herrmann augusto-herrmann left a comment

Choose a reason for hiding this comment

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

Valeu!
Mas vai precisar de um hotfix.


for group, search_result in search["result"].items():
if group is not "single_group":
Copy link
Member

Choose a reason for hiding this comment

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

<>:1: SyntaxWarning: "is" with a literal. Did you mean "=="?

del_single_group = False
for _, term_results in search_result.items():
for dpt,_ in term_results.items():
if dpt is not "single_department":
Copy link
Member

Choose a reason for hiding this comment

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

Para comparar varíavel e string, usar == em vez de is. is é para comparar se o objeto é o mesmo objeto, não para comparar valores (ex.: var is None, já que em Python None é um singleton, um único objeto)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Fix] Relatório por CSV incompleto nas buscas múltiplas
3 participants