Mohammed Yusuf Shaikh
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
3 additions and
1 deletions
-
erpnext/www/book_appointment/index.py
|
|
@ -2,6 +2,7 @@ import frappe |
|
|
|
import datetime |
|
|
|
import json |
|
|
|
import pytz |
|
|
|
from frappe import _ |
|
|
|
|
|
|
|
|
|
|
|
WEEKDAYS = ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"] |
|
|
@ -14,7 +15,8 @@ def get_context(context): |
|
|
|
if is_enabled: |
|
|
|
return context |
|
|
|
else: |
|
|
|
frappe.local.flags.redirect_location = '/404' |
|
|
|
frappe.redirect_to_message(_("Appointment Scheduling Disabled"), _("Appointment Scheduling has been disabled for this site"), |
|
|
|
http_status_code=302, indicator_color="red") |
|
|
|
raise frappe.Redirect |
|
|
|
|
|
|
|
@frappe.whitelist(allow_guest=True) |
|
|
|