Skip to content

Commit

Permalink
Bugfix with undeclared date_picked for Last Day
Browse files Browse the repository at this point in the history
  • Loading branch information
radumas committed Jan 1, 2018
1 parent 9bb5ce2 commit 57333d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ def get_daterange_for_date(daterange_type, date_range_id):
if DATERANGE_TYPES[daterange_type] == 'Last Day':
end_range = DATERANGE[1] + relativedelta(days=1)
start_range = DATERANGE[1] - relativedelta(weeks=2)

date_picked = date_range_id
elif DATERANGE_TYPES[daterange_type] in ['Select Date', 'Select Week']:
if DATERANGE_TYPES[daterange_type] == 'Select Date':
date_picked = date_range_id
Expand Down

1 comment on commit 57333d9

@radumas
Copy link
Member Author

@radumas radumas commented on 57333d9 Jan 1, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#89

Please sign in to comment.