fix: cleanup ui

This commit is contained in:
Jannat Patel
2024-02-05 17:36:55 +05:30
parent af48ccfb57
commit f59f6c617a
93 changed files with 19817 additions and 64987 deletions

View File

@@ -218,3 +218,24 @@ def validate_billing_access(type, name):
)
return {"access": access, "message": message, "address": address}
@frappe.whitelist(allow_guest=True)
def get_job_details(job):
return frappe.db.get_value(
"Job Opportunity",
job,
["job_title", "location", "type", "company_name", "company_logo", "name", "creation"],
as_dict=1,
)
@frappe.whitelist(allow_guest=True)
def get_job_opportunities():
jobs = frappe.get_all(
"Job Opportunity",
{"status": "Open", "disabled": False},
["job_title", "location", "type", "company_name", "company_logo", "name", "creation"],
order_by="creation desc",
)
return jobs