Skip to content

Commit

Permalink
fix: today in unreliable
Browse files Browse the repository at this point in the history
Due to the nature of AWS billing "today" is unreliable and provides false results as amounts are not final.
  • Loading branch information
estahn authored Mar 3, 2021
1 parent dea7cd8 commit e50bc5b
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 @@ -6,7 +6,7 @@
import sys

n_days = 7
today = datetime.datetime.today()
today = datetime.datetime.today() - datetime.timedelta(days=1)
week_ago = today - datetime.timedelta(days=n_days)

# It seems that the sparkline symbols don't line up (probalby based on font?) so put them last
Expand Down

0 comments on commit e50bc5b

Please sign in to comment.