From d61d64ff0a2c054fc6a3c2047cf7d601311248a6 Mon Sep 17 00:00:00 2001 From: baoliang Date: Fri, 7 Sep 2018 16:45:20 +0800 Subject: [PATCH] init --- base/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base/views.py b/base/views.py index 4d7f387..c2dca1a 100644 --- a/base/views.py +++ b/base/views.py @@ -81,7 +81,7 @@ def probe_details(request): id = request.GET.get('id') type = request.GET.get('type') probe = Probe.objects.get(id=id) - probe_data = ProbeData.objects.filter(probe_code=probe.code).order_by('-recorded')[:50] + probe_data = ProbeData.objects.filter(probe_code=probe.code).order_by('-recorded')[:10] return render(request, 'base/probe_details.html', \ {'probe': probe, 'test_land': part_land('land'), 'g214_land': part_land('road'), 'type': type, 'probe_data': probe_data})