diff --git a/ocw/views.py b/ocw/views.py index a56d8ebd..1e4559f1 100644 --- a/ocw/views.py +++ b/ocw/views.py @@ -64,13 +64,10 @@ def update(request): def update_status(request): - if 'application/json' in request.META.get('HTTP_ACCEPT'): - return JsonResponse({ - 'status': 'running' if db.is_updating() else 'idle', - 'last_update': db.last_update() - }) - - return redirect('instances') + return JsonResponse({ + 'status': 'running' if db.is_updating() else 'idle', + 'last_update': db.last_update() + }) @login_required