From 25d1b7144832e8ea4d95bc9f3964e8dee4b27847 Mon Sep 17 00:00:00 2001 From: feng626 <1304903146@qq.com> Date: Mon, 25 Oct 2021 14:24:43 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=88=86=E6=97=B6?= =?UTF-8?q?=E7=99=BB=E9=99=86bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/common/utils/time_period.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/common/utils/time_period.py b/apps/common/utils/time_period.py index c25d63bee..cf4f0f0b9 100644 --- a/apps/common/utils/time_period.py +++ b/apps/common/utils/time_period.py @@ -14,7 +14,7 @@ def contains_time_period(time_periods): if not today_time_period: return False - for time in today_time_period['value'].split('、'): + for time in today_time_period.split('、'): start, end = time.split('~') end = "24:00" if end == "00:00" else end if start <= current_time <= end: