Bugfix in montreal custom catalog
This commit is contained in:
parent
d9a941a97a
commit
fe99059e5a
|
@ -111,7 +111,10 @@ class MontrealCustomCatalog(Catalog):
|
|||
distribution_consumption_variable_flow = float(
|
||||
equipment['distribution_consumption_variable_flow']['#text']) / 100
|
||||
|
||||
emission_equipment = equipment['dissipation_id']
|
||||
emission_equipment = -1
|
||||
if 'dissipation_id' in equipment:
|
||||
emission_equipment = equipment['dissipation_id']
|
||||
|
||||
_emission_equipments = None
|
||||
for equipment_archetype in self._catalog_emission_equipments:
|
||||
if int(equipment_archetype.id) == int(emission_equipment):
|
||||
|
|
Loading…
Reference in New Issue
Block a user