mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-01 03:09:09 +00:00
Use range instead xrange (#13128)
* Use range instead of xrange * convert float to int
This commit is contained in:
committed by
Faris Ansari
parent
72d8509b3d
commit
96698c9a77
@@ -112,7 +112,7 @@ class MaintenanceSchedule(TransactionBase):
|
||||
if not validated and holidays:
|
||||
|
||||
# max iterations = len(holidays)
|
||||
for i in xrange(len(holidays)):
|
||||
for i in range(len(holidays)):
|
||||
if schedule_date in holidays:
|
||||
schedule_date = add_days(schedule_date, -1)
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user