From 5c5a70815ee389a89625be08d336afbdad8cb329 Mon Sep 17 00:00:00 2001 From: Frederick Yin Date: Sat, 23 Oct 2021 16:47:01 +0800 Subject: Database high-level operations no longer require date --- jimbrella/database.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jimbrella/database.py b/jimbrella/database.py index 2b31356..f0d519e 100644 --- a/jimbrella/database.py +++ b/jimbrella/database.py @@ -213,7 +213,7 @@ class Database: umb["lent_at"] = date self._update(umb) - def give_back(self, serial, date) -> None: + def give_back(self, serial) -> None: """When a user has returned an umbrella.""" umb = self._find_by_serial(serial) if umb is None: @@ -226,7 +226,7 @@ class Database: umb["lent_at"] = None self._update(umb) - def mark_overdue(self, serial, date) -> None: + def mark_overdue(self, serial) -> None: """When an umbrella is overdue, change its status to "overdue".""" umb = self._find_by_serial(serial) if umb is None: -- cgit v1.2.3