costs_workflow/operational_cost.py

12 lines
431 B
Python
Raw Normal View History

2023-01-28 18:25:57 -05:00
"""
OperationalCost calculates the Operational Cost of one building
SPDX - License - Identifier: LGPL - 3.0 - or -later
Copyright © 2022 Project Coder Atiya atiya.atiya@mail.concordia.ca
"""
class OperationalCost:
def calculate_operational_cost(municipality, content):
for cost in content.costs:
if cost.municipality == municipality:
fuel_operational_cost = float(cost.operational_cost.fuel_operational_cost)