Bugfix in montreal custom catalog

This commit is contained in:
Guille Gutierrez 2024-04-18 07:42:19 +02:00
parent d9a941a97a
commit fe99059e5a

View File

@ -111,7 +111,10 @@ class MontrealCustomCatalog(Catalog):
distribution_consumption_variable_flow = float( distribution_consumption_variable_flow = float(
equipment['distribution_consumption_variable_flow']['#text']) / 100 equipment['distribution_consumption_variable_flow']['#text']) / 100
emission_equipment = -1
if 'dissipation_id' in equipment:
emission_equipment = equipment['dissipation_id'] emission_equipment = equipment['dissipation_id']
_emission_equipments = None _emission_equipments = None
for equipment_archetype in self._catalog_emission_equipments: for equipment_archetype in self._catalog_emission_equipments:
if int(equipment_archetype.id) == int(emission_equipment): if int(equipment_archetype.id) == int(emission_equipment):