def _dismiss_notification(request, course_action_state_id):
 try:
  action_state = CourseRerunState.objects.find_first(id=course_action_state_id)
 except CourseActionStateItemNotFoundError:
  return HttpResponseBadRequest()
 if (action_state.state == CourseRerunUIStateManager.State.FAILED):
  remove_all_instructors(action_state.course_key)
 action_state.delete()
 return JsonResponse({'success': True})

def _dismiss_notification ( request , course_action_state_id ) : try : action_state = CourseRerunState . objects . find_first ( id = course_action_state_id ) except CourseActionStateItemNotFoundError : return HttpResponseBadRequest ( ) if ( action_state . state == CourseRerunUIStateManager . State . FAILED ) : remove_all_instructors ( action_state . course_key ) action_state . delete ( ) return JsonResponse ( { 'success' : True } )
update the display of the course notification .