Ruff format
This commit is contained in:
@@ -778,9 +778,9 @@ class DreamConfig(ConfigBase):
|
||||
"""
|
||||
if not self.dream_time_ranges:
|
||||
return True
|
||||
|
||||
|
||||
now_min = self._now_minutes()
|
||||
|
||||
|
||||
for time_range in self.dream_time_ranges:
|
||||
if not isinstance(time_range, str):
|
||||
continue
|
||||
@@ -790,7 +790,7 @@ class DreamConfig(ConfigBase):
|
||||
start_min, end_min = parsed
|
||||
if self._in_range(now_min, start_min, end_min):
|
||||
return True
|
||||
|
||||
|
||||
return False
|
||||
|
||||
def __post_init__(self):
|
||||
@@ -800,4 +800,4 @@ class DreamConfig(ConfigBase):
|
||||
if self.max_iterations < 1:
|
||||
raise ValueError(f"max_iterations 必须至少为1,当前值: {self.max_iterations}")
|
||||
if self.first_delay_seconds < 0:
|
||||
raise ValueError(f"first_delay_seconds 不能为负数,当前值: {self.first_delay_seconds}")
|
||||
raise ValueError(f"first_delay_seconds 不能为负数,当前值: {self.first_delay_seconds}")
|
||||
|
||||
Reference in New Issue
Block a user