Exemplo n.º 1
0
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)),
    })
Exemplo n.º 2
0
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)),
    })
Exemplo n.º 3
0
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)),
    })
Exemplo n.º 4
0
def count(mbid):
    return jsonify({
        'mbid': mbid,
        'count': count_lowlevel(mbid),
    })
Exemplo n.º 5
0
def count(mbid):
    mbid, offset = _validate_data_arguments(str(mbid), None)
    return jsonify({
        'mbid': mbid,
        'count': count_lowlevel(mbid),
    })
Exemplo n.º 6
0
def count(mbid):
    return jsonify({
        'mbid': mbid,
        'count': count_lowlevel(mbid),
    })