summaryrefslogtreecommitdiff
path: root/jimbrella
diff options
context:
space:
mode:
Diffstat (limited to 'jimbrella')
-rw-r--r--jimbrella/database.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/jimbrella/database.py b/jimbrella/database.py
index 410985e..b8522ab 100644
--- a/jimbrella/database.py
+++ b/jimbrella/database.py
@@ -219,12 +219,12 @@ class Database(CsvTable):
raise UmbrellaNotFoundError(serial)
elif umb["status"] not in ("lent", "overdue"):
raise UmbrellaStatusError
+ self.admin_log.log("GIVEBACK", umb)
umb["status"] = "available"
for key in ["tenant_name", "tenant_id", "tenant_phone", "tenant_email"]:
umb[key] = ""
umb["lent_at"] = None
self._update(umb)
- self.admin_log.log("GIVEBACK", umb)
def mark_overdue(self, serial) -> None:
"""When an umbrella is overdue, change its status to "overdue"."""