def enqueue_push_course_update(update, course_key):
 if (push_notification_enabled() and update.get('push_notification_selected')):
  course = modulestore().get_course(course_key)
  if course:
   push_course_update_task.delay(unicode(course_key), course.clean_id(padding_char='_'), course.display_name)

def enqueue_push_course_update ( update , course_key ) : if ( push_notification_enabled ( ) and update . get ( 'push_notification_selected' ) ) : course = modulestore ( ) . get_course ( course_key ) if course : push_course_update_task . delay ( unicode ( course_key ) , course . clean_id ( padding_char = '_' ) , course . display_name )
enqueues a task for push notification for the given update for the given course if (1) the feature is enabled and (2) push_notification is selected for the update .