修复抽卡插件:避免被跳过的卡池信息污染后面的卡池信息

This commit is contained in:
Dolen 2022-05-30 11:11:49 +08:00 committed by GitHub
parent 4c34ac570f
commit d6fc675d57
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -290,6 +290,8 @@ class PrtsHandle(BaseHandle[Operator]):
)
if start_time <= datetime.now() <= end_time: # 跳过过时的卡池
break # 这里break会导致个问题如果一个公告里有两个池子会漏掉下面的池子比如 5.19 的定向寻访。但目前我也没啥好想法解决
chars: List[str] = [] # 查找下一个卡池之前清空 chars
up_chars = [] # 查找下一个卡池之前清空 up_chars
if title and start_time and end_time:
if start_time <= datetime.now() <= end_time:
self.UP_EVENT = UpEvent(