From 7ab8ab47ac12731f6605946069ade100011225b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=83=A1=E5=B0=A7?= Date: Wed, 28 May 2025 14:08:10 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=BC=96=E7=A8=8B=E4=B8=8B?= =?UTF-8?q?=E5=8F=91=EF=BC=8C=E4=BF=AE=E6=94=B9=E7=BC=96=E7=A8=8B=E8=AE=B0?= =?UTF-8?q?=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sf_mrs_connect/controllers/controllers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sf_mrs_connect/controllers/controllers.py b/sf_mrs_connect/controllers/controllers.py index e229563c..35833451 100644 --- a/sf_mrs_connect/controllers/controllers.py +++ b/sf_mrs_connect/controllers/controllers.py @@ -143,7 +143,7 @@ class Sf_Mrs_Connect(http.Controller, MultiInheritController): for production in productions: logging.info('production====:%s' % production.name) record_ids_obj = production.programming_record_ids.filtered( - lambda r: r.current_programming_count == ret['reprogramming_num']) + lambda r: r.send_time is False).sorted('id')[0] logging.info('record_ids_obj====:%s' % record_ids_obj) if record_ids_obj: logging.info('record_ids_obj.reason====:%s' % record_ids_obj.reason)