Skip to content

Commit

Permalink
Second data point is for the past two weeks
Browse files Browse the repository at this point in the history
  • Loading branch information
mattrobenolt committed Aug 3, 2012
1 parent 8c53768 commit 3a8d3b3
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions seacucumber/management/commands/ses_usage.py
Expand Up @@ -42,11 +42,9 @@ def _print_daily_stats(self, conn):
stats = stats['SendDataPoints'] stats = stats['SendDataPoints']


today = datetime.date.today() today = datetime.date.today()
yesterday = today - datetime.timedelta(days=1)
current_day = {'HeaderName': 'Current Day: %s/%s' % (today.month, current_day = {'HeaderName': 'Current Day: %s/%s' % (today.month,
today.day)} today.day)}
prev_day = {'HeaderName': 'Yesterday: %s/%s' % (yesterday.month, prev_day = {'HeaderName': 'Past two weeks'}
yesterday.day)}


for data_point in stats: for data_point in stats:
if self._is_data_from_today(data_point): if self._is_data_from_today(data_point):
Expand Down

0 comments on commit 3a8d3b3

Please sign in to comment.