def count(mbid):
    """Get the number of low-level data submissions for a recording with a
    given MBID.

    :resheader Content-Type: *application/json*
    """
    return jsonify({
        'mbid': mbid,
        'count': count_lowlevel(str(mbid)),
    })
def count(mbid):
    """Get the number of low-level data submissions for a recording with a
    given MBID.

    :resheader Content-Type: *application/json*
    """
    return jsonify({
        'mbid': mbid,
        'count': count_lowlevel(str(mbid)),
    })
def count(mbid):
    """Get the number of low-level data submissions for a recording with a
    given MBID.

    **Example response**:

    .. sourcecode:: json

        {
            "mbid": mbid,
            "count": n
        }

    MBID values are always lower-case, even if the provided recording MBID is upper-case or mixed case.

    :resheader Content-Type: *application/json*
    """
    return jsonify({
        'mbid': mbid,
        'count': count_lowlevel(str(mbid)),
    })
Exemple #4
0
def count(mbid):
    return jsonify({
        'mbid': mbid,
        'count': count_lowlevel(mbid),
    })
Exemple #5
0
def count(mbid):
    mbid, offset = _validate_data_arguments(str(mbid), None)
    return jsonify({
        'mbid': mbid,
        'count': count_lowlevel(mbid),
    })
def count(mbid):
    return jsonify({
        'mbid': mbid,
        'count': count_lowlevel(mbid),
    })