Skip to content

Commit

Permalink
Fix dates
Browse files Browse the repository at this point in the history
  • Loading branch information
asennoussi committed Oct 7, 2023
1 parent c4f805e commit 659074e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dashboard/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,9 @@ def get_context_data(self, **kwargs):
base = datetime.today()
date_list = [(base - timedelta(days=x)).strftime("%d-%m-%Y")
for x in range(7)]
date_list = [datetime.strptime(date, "%d-%m-%Y") for date in date_list]
date_list.sort()
date_list = [date.strftime("%d-%m-%Y") for date in date_list]
context['series_x'] = date_list
context['linked_accounts'] = []
series_y_dict = {}
Expand Down

0 comments on commit 659074e

Please sign in to comment.