|
@@ -61,7 +61,7 @@ class OperatingCostsDataView(View):
|
|
|
line = int(line)
|
|
|
try:
|
|
|
if start_time and end_time:
|
|
|
- operating_costs_qs = OperatingCosts.objects.filter(time__gte=start_time, time__lte=end_time)
|
|
|
+ operating_costs_qs = OperatingCosts.objects.filter(time__gte=start_time, time__lt=end_time)
|
|
|
else:
|
|
|
operating_costs_qs = OperatingCosts.objects.all()
|
|
|
count = operating_costs_qs.count()
|