Closed rylanb closed 6 years ago
Location.rb had some bugs in it based on a refactor causing generated logs to fail.
Bug fixes in master: https://github.com/boulder-food-rescue/food-rescue-robot/commit/abefee6e3dcc11ba4ac1651bc6b454cc0bea767e
This branch has follow-up cleanup.
I found that you can do this too:
def day_length(index) hours_on_day(index).reverse.reduce(:-) end
to fix the initial bug from refactor.
Any thoughts?
Overview
Location.rb had some bugs in it based on a refactor causing generated logs to fail.
Bug fixes in master: https://github.com/boulder-food-rescue/food-rescue-robot/commit/abefee6e3dcc11ba4ac1651bc6b454cc0bea767e
This branch has follow-up cleanup.
I found that you can do this too:
to fix the initial bug from refactor.
Any thoughts?