Skip to content

Commit ab2ecd4

Browse files
authored
Merge branch 'master' into dependabot/github_actions/docker/build-push-action-5.1.0
2 parents 8acf30d + f1ba293 commit ab2ecd4

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

ocw/views.py

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -64,13 +64,10 @@ def update(request):
6464

6565

6666
def update_status(request):
67-
if 'application/json' in request.META.get('HTTP_ACCEPT'):
68-
return JsonResponse({
69-
'status': 'running' if db.is_updating() else 'idle',
70-
'last_update': db.last_update()
71-
})
72-
73-
return redirect('instances')
67+
return JsonResponse({
68+
'status': 'running' if db.is_updating() else 'idle',
69+
'last_update': db.last_update()
70+
})
7471

7572

7673
@login_required

0 commit comments

Comments
 (0)