diff --git a/complaintManager/views.py b/complaintManager/views.py index 6b90af51ffde37757ea3eee4969ec3aa38d2d009..3fbe9e83f3043f10a14a5959ee4d30b71feb8011 100644 --- a/complaintManager/views.py +++ b/complaintManager/views.py @@ -106,6 +106,7 @@ def laporan(request): if request.method == 'GET': start_date = request.GET['start_date'] end_date = request.GET['end_date'] + end_date = str(datetime.datetime.strptime(end_date, '%Y-%m-%d').date() + datetime.timedelta(days=1)) last_complaints = Complaint.objects.filter(reported__range=(start_date, end_date)) if request.GET['type'] == 'csv': # make the csv file