blob: d25b50565ab9eabdd94e7bd892d09f8a486b714d [file] [log] [blame]
Pranav Nachanekardf1a5a92019-09-20 10:08:48 +05301import frappe
2@frappe.whitelist(allow_guest=True)
3def get_context(context):
4 email = frappe.form_dict['email']
5 appointment_name = frappe.form_dict['appointment']
6 if email and appointment_name:
7 appointment = frappe.get_doc('Appointment',appointment_name)
8 appointment.set_verified(email)
9 context.success = True
10 return context
11 else:
12 print('Something not found')
13 context.success = False
14 return context