small fixes

This commit is contained in:
2024-12-23 18:10:43 -05:00
parent 8569430468
commit 4a2ec2418c
4 changed files with 8 additions and 6 deletions

View File

@@ -21,5 +21,6 @@ def calc_home_factor(gallons_put_in_home, current_house_factor):
customer_home_factor = Decimal(current_house_factor) - Decimal(.75)
else:
customer_home_factor = Decimal(current_house_factor)
if customer_home_factor <= 0:
customer_home_factor = Decimal(.25)
return customer_home_factor