chore: remove unused whitelisted method from project (#55648)

This commit is contained in:
Diptanil Saha
2026-06-05 15:22:58 +05:30
committed by GitHub
parent 62fdc4c457
commit 7c6b13a838

View File

@@ -64,21 +64,6 @@ def get_tasks(project, start=0, search=None, item_status=None):
return list(filter(lambda x: not x.parent_task, tasks)) return list(filter(lambda x: not x.parent_task, tasks))
@frappe.whitelist()
def get_task_html(project: str, start: int = 0, item_status: str | None = None):
return frappe.render_template(
"erpnext/templates/includes/projects/project_tasks.html",
{
"doc": {
"name": project,
"project_name": project,
"tasks": get_tasks(project, start, item_status=item_status),
}
},
is_path=True,
)
def get_timesheets(project, start=0, search=None): def get_timesheets(project, start=0, search=None):
filters = {"project": project} filters = {"project": project}
if search: if search:
@@ -104,15 +89,6 @@ def get_timesheets(project, start=0, search=None):
return timesheets return timesheets
@frappe.whitelist()
def get_timesheet_html(project: str, start: int = 0):
return frappe.render_template(
"erpnext/templates/includes/projects/project_timesheets.html",
{"doc": {"timesheets": get_timesheets(project, start)}},
is_path=True,
)
def get_attachments(project): def get_attachments(project):
return frappe.get_all( return frappe.get_all(
"File", "File",