From dbaf121685798ef8f1e66ee2c7dcf5931f4f8670 Mon Sep 17 00:00:00 2001 From: caoqianming Date: Mon, 29 Sep 2025 11:09:09 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20mroombooking=20=E8=BF=94=E5=9B=9Eslots?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/ofm/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/ofm/views.py b/apps/ofm/views.py index f137b634..873e97bc 100644 --- a/apps/ofm/views.py +++ b/apps/ofm/views.py @@ -66,7 +66,7 @@ class MroomBookingViewSet(CustomModelViewSet): start_time = self._slot_to_time(info["current_slots"][0]) end_time = self._slot_to_time(info["current_slots"][-1] + 1) info["time_ranges"].append(f"{start_time}-{end_time}") - info.pop("current_slots") # 清理临时数据 + info["slots"] = info.pop("current_slots") # 清理临时数据 for item in data: item.update(booking_info.get(item["id"], {}))