This commit is contained in:
guange 2019-01-18 16:28:47 +08:00
parent a3f89ca9b3
commit 9dd8a74a5e
1 changed files with 1 additions and 1 deletions

View File

@ -29,6 +29,6 @@ def crawl(request):
def result(request):
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,
"top10_sells": top10_sells})