This commit is contained in:
parent
a3f89ca9b3
commit
9dd8a74a5e
|
@ -29,6 +29,6 @@ def crawl(request):
|
||||||
|
|
||||||
def result(request):
|
def result(request):
|
||||||
from_type_info = json.loads(Datas.objects.filter(key='from_type').first().data)
|
from_type_info = json.loads(Datas.objects.filter(key='from_type').first().data)
|
||||||
top10_sells = Top10Sells.objects.order_by('id').values()
|
top10_sells = [entry for entry in Top10Sells.objects.order_by('id').values()]
|
||||||
return render(request, 'myapp/result.html', {"from_type_info": from_type_info,
|
return render(request, 'myapp/result.html', {"from_type_info": from_type_info,
|
||||||
"top10_sells": top10_sells})
|
"top10_sells": top10_sells})
|
Loading…
Reference in New Issue