This commit is contained in:
baoliang 2018-09-07 16:45:20 +08:00
parent c62b8a30f0
commit d61d64ff0a
1 changed files with 1 additions and 1 deletions

View File

@ -81,7 +81,7 @@ def probe_details(request):
id = request.GET.get('id') id = request.GET.get('id')
type = request.GET.get('type') type = request.GET.get('type')
probe = Probe.objects.get(id=id) 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', \ return render(request, 'base/probe_details.html', \
{'probe': probe, 'test_land': part_land('land'), 'g214_land': part_land('road'), 'type': type, {'probe': probe, 'test_land': part_land('land'), 'g214_land': part_land('road'), 'type': type,
'probe_data': probe_data}) 'probe_data': probe_data})