From e50bc5b4febc5f8f96f9f426e444fcf24bbee37d Mon Sep 17 00:00:00 2001 From: Enrico Stahn Date: Wed, 3 Mar 2021 12:26:34 +1100 Subject: [PATCH] fix: today in unreliable Due to the nature of AWS billing "today" is unreliable and provides false results as amounts are not final. --- handler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/handler.py b/handler.py index 9165d42..b3f39fe 100644 --- a/handler.py +++ b/handler.py @@ -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