summaryrefslogtreecommitdiff
path: root/jimbrella
diff options
context:
space:
mode:
authorFrederick Yin <fkfd@fkfd.me>2021-10-23 16:47:01 +0800
committerFrederick Yin <fkfd@fkfd.me>2021-10-23 16:47:01 +0800
commit5c5a70815ee389a89625be08d336afbdad8cb329 (patch)
treebcf0935cc91a3e17fdf98dd0c854f89b82aee941 /jimbrella
parent95bf0c65b5729afc54a0595fb9ed8a7e9a256f80 (diff)
Database high-level operations no longer require date
Diffstat (limited to 'jimbrella')
-rw-r--r--jimbrella/database.py4
1 files 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: