From 28eef7333976971012510610775423a3fbe83dbe Mon Sep 17 00:00:00 2001 From: Nitish Bahuguna <68819413+N-koder@users.noreply.github.com> Date: Sat, 7 Oct 2023 12:19:51 +0530 Subject: [PATCH] Update spindler_battery.py modify the Spindler battery so it requires service after three years instead of two. --- battery/spindler_battery.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/battery/spindler_battery.py b/battery/spindler_battery.py index be69f2c..aaa9616 100644 --- a/battery/spindler_battery.py +++ b/battery/spindler_battery.py @@ -8,7 +8,7 @@ def __init__(self, current_date, last_service_date): self.last_service_date = last_service_date def needs_service(self): - date_which_battery_should_be_serviced_by = add_years_to_date(self.last_service_date, 2) + date_which_battery_should_be_serviced_by = add_years_to_date(self.last_service_date, 3) if date_which_battery_should_be_serviced_by < self.current_date: return True else: