mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2026-10-22 20:50:04 +08:00
修复抽卡插件:方舟更新UP池信息时,若公告的第一个池子过期会导致无法更新UP池信息
This commit is contained in:
@@ -288,6 +288,7 @@ class PrtsHandle(BaseHandle[Operator]):
|
|||||||
up_chars.append(
|
up_chars.append(
|
||||||
UpChar(name=name, star=star, limited=False, zoom=zoom)
|
UpChar(name=name, star=star, limited=False, zoom=zoom)
|
||||||
)
|
)
|
||||||
|
if start_time <= datetime.now() <= end_time: # 跳过过时的卡池
|
||||||
break # 这里break会导致个问题:如果一个公告里有两个池子,会漏掉下面的池子,比如 5.19 的定向寻访。但目前我也没啥好想法解决
|
break # 这里break会导致个问题:如果一个公告里有两个池子,会漏掉下面的池子,比如 5.19 的定向寻访。但目前我也没啥好想法解决
|
||||||
if title and start_time and end_time:
|
if title and start_time and end_time:
|
||||||
if start_time <= datetime.now() <= end_time:
|
if start_time <= datetime.now() <= end_time:
|
||||||
|
|||||||
Reference in New Issue
Block a user