This commit is contained in:
parent
b28758032f
commit
22e7d9cfb8
|
@ -11,7 +11,7 @@ def _render_json(data):
|
||||||
|
|
||||||
def crawl_info(request):
|
def crawl_info(request):
|
||||||
_crawl_info = CrawlInfos.objects.order_by('-id').first()
|
_crawl_info = CrawlInfos.objects.order_by('-id').first()
|
||||||
data = json.loads(serialize('json',[_crawl_info]))[0]
|
data = json.loads(serialize('json',[_crawl_info]))[0]["fields"]
|
||||||
return _render_json(data)
|
return _render_json(data)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue