When obtaining the weekly fuel prices from EIA, the start of the week's data is on a Monday. However, the data is not released until several days later (~Wednesday). Therefore, log entries that occur on Monday and Tuesday will not have fuel price data. As a result, modify the logic to return the most recent fuel price if the week is not represented.
When obtaining the weekly fuel prices from EIA, the start of the week's data is on a Monday. However, the data is not released until several days later (~Wednesday). Therefore, log entries that occur on Monday and Tuesday will not have fuel price data. As a result, modify the logic to return the most recent fuel price if the week is not represented.