Use range instead xrange (#13128)
* Use range instead of xrange
* convert float to int
diff --git a/erpnext/demo/setup/healthcare.py b/erpnext/demo/setup/healthcare.py
index d645e30..b48e0bc 100644
--- a/erpnext/demo/setup/healthcare.py
+++ b/erpnext/demo/setup/healthcare.py
@@ -65,7 +65,7 @@
i += 1
def make_consulation():
- for i in xrange(3):
+ for i in range(3):
physician = get_random("Physician")
department = frappe.get_value("Physician", physician, "department")
patient = get_random("Patient")
@@ -74,7 +74,7 @@
consultation.save(ignore_permissions=True)
def consulation_on_appointment():
- for i in xrange(3):
+ for i in range(3):
appointment = get_random("Patient Appointment")
appointment = frappe.get_doc("Patient Appointment",appointment)
consultation = set_consultation(appointment.patient, appointment.patient_sex, appointment.physician, appointment.department, appointment.appointment_date, i)