diff options
author | Frederick Yin <fkfd@fkfd.me> | 2021-10-23 16:47:01 +0800 |
---|---|---|
committer | Frederick Yin <fkfd@fkfd.me> | 2021-10-23 16:47:01 +0800 |
commit | 5c5a70815ee389a89625be08d336afbdad8cb329 (patch) | |
tree | bcf0935cc91a3e17fdf98dd0c854f89b82aee941 /jimbrella | |
parent | 95bf0c65b5729afc54a0595fb9ed8a7e9a256f80 (diff) |
Database high-level operations no longer require date
Diffstat (limited to 'jimbrella')
-rw-r--r-- | jimbrella/database.py | 4 |
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: |