Skip to content

limpei o queue dos remédios depois da coleta#6

Open
japoyudi wants to merge 2 commits intomainfrom
Reset-da-lista-de-remédios-depois-da-coleta

Hidden character warning

The head ref may contain hidden characters: "Reset-da-lista-de-rem\u00e9dios-depois-da-coleta"
Open

limpei o queue dos remédios depois da coleta#6
japoyudi wants to merge 2 commits intomainfrom
Reset-da-lista-de-remédios-depois-da-coleta

Conversation

@japoyudi
Copy link
Copy Markdown

ao limpar o queue, resolvi o problema da lista de remédios não resetar após a coleta

Copy link
Copy Markdown
Contributor

@gustavoaureliano gustavoaureliano left a comment

Choose a reason for hiding this comment

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

Limpe o dicionário collect_list ao invés da lista queue

Comment thread pages.py Outdated
item = bytes(str(item), encoding='utf-8')
communication.send_message(item)
time.sleep(2)
queue = []
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

simplesmente limpar essa lista não resolve o problema, já que a lista é uma variável local da função e é atualizada com base em um dicionário, que existe fora do escopo da função, toda vez que ela é chamada.
Veja a linha 212

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants