From 308c400c6abc2ead54707d9ff1b96656ec21c5b0 Mon Sep 17 00:00:00 2001 From: anandbaburajan Date: Fri, 30 Sep 2022 15:33:34 +0530 Subject: [PATCH] chore: make linter happy --- erpnext/hr/doctype/attendance/attendance.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/erpnext/hr/doctype/attendance/attendance.py b/erpnext/hr/doctype/attendance/attendance.py index b4650d57da0..0a81fe5eec6 100644 --- a/erpnext/hr/doctype/attendance/attendance.py +++ b/erpnext/hr/doctype/attendance/attendance.py @@ -257,9 +257,7 @@ def get_unmarked_days(employee, month, exclude_holidays=0): start_day = joining_date.day if ( - relieving_date - and relieving_date.year == today.year - and relieving_date.month == month_map[month] + relieving_date and relieving_date.year == today.year and relieving_date.month == month_map[month] ): end_day = relieving_date.day + 1