def shot_duration_data(shot, role):
    """Return the data for duration

    :param shot: the shot that holds the data
    :type shot: :class:`jukeboxcore.djadapter.models.Shot`
    :param role: item data role
    :type role: QtCore.Qt.ItemDataRole
    :returns: data for the duration
    :rtype: depending on role
    :raises: None
    """
    if role == QtCore.Qt.DisplayRole:
        return str(shot.duration)