Pranav Nachanekar | df1a5a9 | 2019-09-20 10:08:48 +0530 | [diff] [blame] | 1 | import frappe |
2 | @frappe.whitelist(allow_guest=True) | ||||
3 | def 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 |