Skip to content

Commit

Permalink
Exportar unicamente datos de el año actual en Z8_01
Browse files Browse the repository at this point in the history
  • Loading branch information
Ruben1700 committed Jun 10, 2024
1 parent d4ee137 commit 2c537e0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion libcnmc/cir_8_2021/FD2.py
Original file line number Diff line number Diff line change
Expand Up @@ -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']
Expand Down

0 comments on commit 2c537e0

Please sign in to comment.