(sketch, label)
return True
Add a label to the sketch.
Add a label to the sketch.
Add a label to the sketch .
def _add_label(sketch, label):
        """Add a label to the sketch."""
        if sketch.has_label(label):
            logger.warning(
                'Unable to apply the label [{0:s}] to sketch {1:d}, '
                'already exists.'.format(label, sketch.id))
            return False
        sketch.add_label(label, user=current_user)
        return True
def _add_label ( sketch , label ) : if sketch . has_label ( label ) : logger . warning ( 'Unable to apply the label [{0:s}] to sketch {1:d}, ' 'already exists.' . format ( label , sketch . id ) ) return False sketch . add_label ( label , user = current_user ) return True