From 2ace6ce8a09af773678423f4975bbb97aae1c42c Mon Sep 17 00:00:00 2001 From: Eduardo Date: Tue, 14 Jan 2025 15:23:22 +0100 Subject: [PATCH] fix barcode len --- src/ui/barcode_recipe_selection/barcode_recipe_selection.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ui/barcode_recipe_selection/barcode_recipe_selection.py b/src/ui/barcode_recipe_selection/barcode_recipe_selection.py index a1f7061..bf12450 100644 --- a/src/ui/barcode_recipe_selection/barcode_recipe_selection.py +++ b/src/ui/barcode_recipe_selection/barcode_recipe_selection.py @@ -75,7 +75,7 @@ class Barcode_Recipe_Selection(Test_Test): else: lines = data.splitlines() #lines = data.split("-") - candidates = [i for i in lines if len(i) in(10,12)] + candidates = [i for i in lines if len(i) in(10,12,13)] if len(candidates)>0: # RECIPE CODE FOUND self.recipe=candidates[-1]