Skip to content

Commit

Permalink
Merge pull request #641 from gisce/b1-fix-no-butlletins
Browse files Browse the repository at this point in the history
A1: Arreglar si no tienen boletín no falle
  • Loading branch information
ecarreras authored Apr 5, 2024
2 parents 4443fcb + 2055282 commit b07390e
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions libcnmc/cir_8_2021/FA1.py
Original file line number Diff line number Diff line change
Expand Up @@ -726,10 +726,11 @@ def consumer(self):
'&', ('data', '=', False), ('data_vigencia', '>=', current_date),
'&', ('data', '<=', current_date), ('data_vigencia', '>=', current_date),
], 0, 0, False, {'active_test': False})
o_pot_ads = max(
b['pot_max_admisible']
for b in self.connection.GiscedataButlleti.read(but_ids, ['pot_max_admisible'])
)
if but_ids:
o_pot_ads = max(
b['pot_max_admisible']
for b in self.connection.GiscedataButlleti.read(but_ids, ['pot_max_admisible'])
)
if o_pot_ads < o_potencia:
o_pot_ads = o_potencia

Expand Down

0 comments on commit b07390e

Please sign in to comment.