From 65bdacbda9158fc6f80e1c5d946a6501e4746bb2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Bournhonesque?= Date: Wed, 9 Oct 2024 09:58:36 +0200 Subject: [PATCH] fix: fix launch normalize barcode job --- robotoff/cli/main.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/robotoff/cli/main.py b/robotoff/cli/main.py index 2d6b0ae09f..d242d44e9a 100644 --- a/robotoff/cli/main.py +++ b/robotoff/cli/main.py @@ -1068,15 +1068,15 @@ def launch_normalize_barcode_job( prediction.save() updated += 1 - tsx.commit() - logger.info( - "Current ID: %s, Updated %d predictions", min_id, updated - ) - if prediction is not None: - min_id = prediction.id - else: - break - logger.info("Updated %d predictions", updated) + tsx.commit() + logger.info( + "Current ID: %s, Updated %d predictions", min_id, updated + ) + if prediction is not None: + min_id = prediction.id + else: + break + logger.info("Updated %d predictions", updated) if launch_insight: updated = 0