Skip to content

Commit

Permalink
Merge pull request #654 from gisce/current_year_data
Browse files Browse the repository at this point in the history
Exportar unicamente datos de el año actual en Z8_01
  • Loading branch information
eberloso authored Jun 12, 2024
2 parents d4ee137 + 2c537e0 commit 9dce562
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 9dce562

Please sign in to comment.