From bfbc422e800b25366efd73fcf04a05729c966a2d Mon Sep 17 00:00:00 2001 From: Your Name Date: Sun, 21 Jan 2024 20:46:27 -0500 Subject: [PATCH] fix 500 mark dropped w date --- journal/views/mark.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/journal/views/mark.py b/journal/views/mark.py index a09e749e..129146f4 100644 --- a/journal/views/mark.py +++ b/journal/views/mark.py @@ -79,10 +79,12 @@ def mark(request: AuthedHttpRequest, item_uuid): shelf_time_offset = { ShelfType.WISHLIST: " 20:00:00", ShelfType.PROGRESS: " 21:00:00", + ShelfType.DROPPED: " 21:30:00", ShelfType.COMPLETE: " 22:00:00", } dt = parse_datetime( - request.POST.get("mark_date", "") + shelf_time_offset[status] + request.POST.get("mark_date", "") + + shelf_time_offset.get(status, "") ) mark_date = ( dt.replace(tzinfo=timezone.get_current_timezone()) if dt else None