Skip to content

Commit

Permalink
fix(handler): use correct range for list_of_dates (startTimePeriod.St…
Browse files Browse the repository at this point in the history
…art of yesterday's bill is the day before yesterday)
  • Loading branch information
Alex-ley committed Aug 30, 2021
1 parent c58dec0 commit 7b5853e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def report_cost(event, context, result: dict = None, yesterday: str = None, new_
# we have the correct length lists of costs (len is n_days)
list_of_dates = [
(week_ago + datetime.timedelta(days=x)).strftime('%Y-%m-%d')
for x in range(1, n_days + 1)
for x in range(n_days)
]
print(list_of_dates)

Expand Down

0 comments on commit 7b5853e

Please sign in to comment.