mirror of
https://github.com/lijiejie/eyes.sh.git
synced 2026-09-22 01:30:43 +08:00
fix
This commit is contained in:
+1
-1
@@ -354,7 +354,7 @@ def log_view(request, type):
|
|||||||
page = paginator.num_pages
|
page = paginator.num_pages
|
||||||
logs = paginator.page(paginator.num_pages)
|
logs = paginator.page(paginator.num_pages)
|
||||||
if request.GET.get('check_update', '') == 'true':
|
if request.GET.get('check_update', '') == 'true':
|
||||||
if request.GET.get('last_id') == str(logs[0].id):
|
if len(logs) == 0 or request.GET.get('last_id') == str(logs[0].id):
|
||||||
return HttpResponse('noChange')
|
return HttpResponse('noChange')
|
||||||
else:
|
else:
|
||||||
return HttpResponse('Changed')
|
return HttpResponse('Changed')
|
||||||
|
|||||||
Reference in New Issue
Block a user