def select_contact():
    if request.method == 'GET':
        data = request.get_json()
        single_donor = json.loads(data)
        response = SelectInTable.donor(single_donor)
        return jsonify(response)
    return jsonify({"status": 400, "entry": "Incorrect Method call"})
Пример #2
0
def select_donor():
    if request.method == 'GET':
        #data = request.get_json()
        single_donor = request.args.to_dict()
        response = SelectInTable.donor(single_donor)
        return jsonify(response)
    return jsonify({"status": 400, "entry": "Incorrect Method call"})
Пример #3
0
def add__get_contact():
    if request.method == 'POST':
        single_donor = request.get_json()
        response = InsertInTable.donor_contact(single_donor)
        return jsonify(response)
    if request.method == 'GET':
        single_donor = request.args.to_dict()
        response = SelectInTable.get_donor_emergency_contact(single_donor)
        return jsonify(response)
    return jsonify({"status": 400, "entry": "Incorrect Method call"})
Пример #4
0
def get_donor_econtact_email():
    if request.method == 'GET':
        single_donor = request.args.to_dict()
        response = SelectInTable.get_complete_econtact_info(single_donor)
        return jsonify(response)
    return jsonify({"status": 400, "entry": "Incorrect Method call"})