示例#1
0
def get_n_persons_with_top_donations():

    n = request.args.get('n', 5)

    aap = AAPDonationStats()
    result = aap.get_n_persons_with_top_donations(int(n))
    return jsonify({'result': result})
示例#2
0
def get_n_persons_with_top_donations():

    n = request.args.get('n', 5)

    aap = AAPDonationStats()
    result = aap.get_n_persons_with_top_donations(int(n))
    return jsonify({'result': result})
示例#3
0
def get_persons_with_repeated_donations():

    aap = AAPDonationStats()
    result = aap.get_persons_with_repeated_donations()
    return jsonify({'result': result})
示例#4
0
def get_favourite_time_of_donations():

    aap = AAPDonationStats()
    result = aap.get_favourite_time_of_donations()
    return jsonify({'result': result})
示例#5
0
def get_state_with_num_of_donations():

    aap = AAPDonationStats()
    result = aap.get_state_with_num_of_donations()
    return jsonify({'result': result})
示例#6
0
def get_persons_with_repeated_donations():

    aap = AAPDonationStats()
    result = aap.get_persons_with_repeated_donations()
    return jsonify({'result': result})
示例#7
0
def get_favourite_time_of_donations():

    aap = AAPDonationStats()
    result = aap.get_favourite_time_of_donations()
    return jsonify({'result': result})
示例#8
0
def get_state_with_num_of_donations():

    aap = AAPDonationStats()
    result = aap.get_state_with_num_of_donations()
    return jsonify({'result': result})