codeforboston / home-energy-analysis-tool

https://www.codeforboston.org/projects/
MIT License
12 stars 31 forks source link

Refactor - extract bills_summer, bills_winter, and bills_shoulder calculation #271

Open ethanstrominger opened 1 week ago

ethanstrominger commented 1 week ago

Change

for billing_period in billing_periods 
  code to calculate bills_summer, etc
 =>
Extract the code

for billing_period in billing_periods: { bills_summer, bills_winter, bills_shoulder } =_categorize_bills_by_season (billing_periods)