def any_unfulfilled_milestones(course_id, user_id):
 if (not settings.FEATURES.get('MILESTONES_APP')):
  return False
 return bool(get_course_milestones_fulfillment_paths(course_id, {'id': user_id}))

def any_unfulfilled_milestones ( course_id , user_id ) : if ( not settings . FEATURES . get ( 'MILESTONES_APP' ) ) : return False return bool ( get_course_milestones_fulfillment_paths ( course_id , { 'id' : user_id } ) )
returns a boolean if user has any unfulfilled milestones .