parameters: (data)
docstring: update profile description
docstring_summary: update profile description
docstring_tokens: update profile description
function: def on_set_profile_description(data):
      ''' update profile description '''
      profile_description = data['profile_description']
      last_profile = LastProfile.query.get(1)
      profile = Profiles.query.filter_by(id=last_profile.profile_id).first()
      profile.description = profile_description
      DB.session.commit()
      server_log('set profile description %s for profile %s' %
                 (profile_name, profile.name))
      emit_node_tuning()
function_tokens: def on_set_profile_description ( data ) : profile_description = data [ 'profile_description' ] last_profile = LastProfile . query . get ( 1 ) profile = Profiles . query . filter_by ( id = last_profile . profile_id ) . first ( ) profile . description = profile_description DB . session . commit ( ) server_log ( 'set profile description %s for profile %s' % ( profile_name , profile . name ) ) emit_node_tuning ( )