From 2bc53d85840e7e01f60a32c50faa293958659111 Mon Sep 17 00:00:00 2001 From: Yudi Date: Wed, 25 Sep 2024 19:32:33 -0300 Subject: [PATCH 1/2] =?UTF-8?q?limpei=20o=20queue=20dos=20rem=C3=A9dios=20?= =?UTF-8?q?depois=20da=20coleta?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pages.py b/pages.py index 795a64f..8a970f6 100644 --- a/pages.py +++ b/pages.py @@ -225,6 +225,7 @@ def collect(self): item = bytes(str(item), encoding='utf-8') communication.send_message(item) time.sleep(2) + queue = [] self.loading_txt.configure(text="O Golgi acabou de concluir seu trabalho") self.loading_img.configure(image=load_done_img) self.update() From 2a9ac00ac585c6f6d15885f7cd8f17089d3c167a Mon Sep 17 00:00:00 2001 From: Yudi Date: Fri, 27 Sep 2024 22:50:59 -0300 Subject: [PATCH 2/2] limpei o dicionario apos a coleta --- pages.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pages.py b/pages.py index 8a970f6..caf3b10 100644 --- a/pages.py +++ b/pages.py @@ -210,7 +210,7 @@ def collect(self): golgi_data.update_amount(id, amount) queue = dict_to_list(self.collect_list) - + self.collect_list = [] communication = ArduinoCommunication() connect = communication.connect(ESP_PORT) if connect: @@ -225,7 +225,6 @@ def collect(self): item = bytes(str(item), encoding='utf-8') communication.send_message(item) time.sleep(2) - queue = [] self.loading_txt.configure(text="O Golgi acabou de concluir seu trabalho") self.loading_img.configure(image=load_done_img) self.update()