0.2.4
This commit is contained in:
@@ -670,6 +670,9 @@ def is_forbidden_time() -> bool:
|
||||
返回值:
|
||||
bool: True 表示处于禁跑时段
|
||||
"""
|
||||
# 去除晚上停止功能
|
||||
return False
|
||||
# 禁跑时段为 18:30 ~ 20:00
|
||||
now = datetime.now()
|
||||
start = now.replace(hour=18, minute=30, second=0, microsecond=0)
|
||||
end = now.replace(hour=20, minute=0, second=0, microsecond=0)
|
||||
|
||||
Reference in New Issue
Block a user