Skip to content

Commit

Permalink
IMP cobertura en el campo operacion para B1
Browse files Browse the repository at this point in the history
  • Loading branch information
marcosfvilaboa committed Nov 4, 2024
1 parent 7f0a408 commit 95307cc
Showing 1 changed file with 5 additions and 11 deletions.
16 changes: 5 additions & 11 deletions libcnmc/cir_8_2021/FB1.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ def consumer(self):
'baixa', 'data_pm', 'data_industria', 'coeficient', 'cini', 'propietari', 'tensio_max_disseny_id', 'name',
'origen', 'final', 'perc_financament', 'longitud_cad', 'cable', 'linia', 'model', 'punt_frontera',
'tipus_instalacio_cnmc_id', 'data_baixa', 'baixa', 'longitud_cad', 'data_pm', 'circuits',
'id_regulatori', 'municipi',
'id_regulatori', 'municipi', 'operacion',
]
data_pm_limit = '{0}-01-01'.format(self.year + 1)

Expand Down Expand Up @@ -268,11 +268,8 @@ def get_inst_name(element_id):

# Operación
operacion = '1'
if tram.get('operacion', False):
if tram['operacion']:
operacion = '1'
else:
operacion = '0'
if not tram.get('operacion', False):
operacion = '0'

# Causa baja
if tram.get('obra_id', False):
Expand Down Expand Up @@ -749,11 +746,8 @@ def get_inst_name(element_id):

# OPERACION
operacion = '1'
if linia.get('operacion', False):
if linia['operacion']:
operacion = '1'
else:
operacion = '0'
if not linia.get('operacion', False):
operacion = '0'

# FECHA BAJA
if linia.get('data_baixa'):
Expand Down

0 comments on commit 95307cc

Please sign in to comment.