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})
def get_persons_with_repeated_donations(): aap = AAPDonationStats() result = aap.get_persons_with_repeated_donations() return jsonify({'result': result})
def get_favourite_time_of_donations(): aap = AAPDonationStats() result = aap.get_favourite_time_of_donations() return jsonify({'result': result})
def get_state_with_num_of_donations(): aap = AAPDonationStats() result = aap.get_state_with_num_of_donations() return jsonify({'result': result})