From 2c537e01edde925434a758a2595c417746601c26 Mon Sep 17 00:00:00 2001 From: Ruben1700 Date: Mon, 10 Jun 2024 09:24:58 +0200 Subject: [PATCH] =?UTF-8?q?Exportar=20unicamente=20datos=20de=20el=20a?= =?UTF-8?q?=C3=B1o=20actual=20en=20Z8=5F01?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- libcnmc/cir_8_2021/FD2.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libcnmc/cir_8_2021/FD2.py b/libcnmc/cir_8_2021/FD2.py index d99622dc..87947627 100644 --- a/libcnmc/cir_8_2021/FD2.py +++ b/libcnmc/cir_8_2021/FD2.py @@ -72,7 +72,10 @@ def consumer(self): ] self.output_q.put(output) else: - d2_z8_15 = d2_obj.search([('active', '=', True), ('cod_gestion.name', '=', 'Z8_01_dl15')])[0] + d2_z8_15 = d2_obj.search([('active', '=', True), + ('cod_gestion.name', '=', 'Z8_01_dl15'), + ('year', '=', self.year)])[0] + d2_z8_15 = d2_obj.read(d2_z8_15, []) solicitudes = cod_gest_data['solicitudes'] + d2_z8_15['solicitudes'] en_plazo = cod_gest_data['en_plazo'] + d2_z8_15['en_plazo']