chore: remove unused get_docname (#21270)

This commit is contained in:
Daizy Modi 2023-06-07 13:56:50 +05:30 committed by GitHub
parent 226cebe3b4
commit 984963d75e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -39,10 +39,3 @@ def save_message(reply, topic):
frappe.get_doc({"doctype": "Discussion Reply", "reply": reply, "topic": topic}).save(
ignore_permissions=True
)
@frappe.whitelist(allow_guest=True)
def get_docname(route):
if not route:
route = frappe.db.get_single_value("Website Settings", "home_page")
return frappe.db.get_value("Web Page", {"route": route}, ["name"])