Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions modules/loans/src/loans/records.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,6 @@ def record(
raise Refused("Say who is taking the tool: the history is a name and two dates.")
leaves = _a_date(handed_over, "hand-over")
comes_back = _a_date(back_on, "return")
if comes_back < leaves:
raise Refused(
"The return date is before the hand-over date. Correct the dates: "
"a tool cannot come back before it leaves."
)
with self._open() as connection:
cursor = connection.execute(
"INSERT INTO loans (tool_id, tool_name, holder, handed_over, back_on) "
Expand Down
Loading