From c8333273ff54b178b97fdce0c97832717a0f8568 Mon Sep 17 00:00:00 2001 From: eduardo Date: Mon, 13 May 2024 09:02:44 +0200 Subject: [PATCH] Updated data processing in barcode_recipe_selection In the barcode_recipe_selection.py script, the way data is split and processed has been revised. 'Splitlines' is now used instead of 'split("-")', and the length for candidates was changed from 8 to 10. FIX --- src/ui/barcode_recipe_selection/barcode_recipe_selection.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ui/barcode_recipe_selection/barcode_recipe_selection.py b/src/ui/barcode_recipe_selection/barcode_recipe_selection.py index 8cec814..7f5d9ca 100644 --- a/src/ui/barcode_recipe_selection/barcode_recipe_selection.py +++ b/src/ui/barcode_recipe_selection/barcode_recipe_selection.py @@ -73,9 +73,9 @@ class Barcode_Recipe_Selection(Test_Test): if data is None: return else: - # lines = data.splitlines() - lines = data.split("-") - candidates = [i for i in lines if len(i)==8] + lines = data.splitlines() + #lines = data.split("-") + candidates = [i for i in lines if len(i)==10] if len(candidates)>0: # RECIPE CODE FOUND self.recipe=candidates[-1]