Skip to content

Commit

Permalink
fix: 修正遗器数值校验的判断边界
Browse files Browse the repository at this point in the history
  • Loading branch information
weiduhuo committed Oct 12, 2023
1 parent b5da70a commit be36778
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions utils/relic.py
Original file line number Diff line number Diff line change
Expand Up @@ -625,8 +625,8 @@ def get_subs_stats_detail(self, data:tuple[str, float], index:int=None) -> tuple
check = result - value
log.debug(f"[{a}, {d}], l={level}, s={score}, r={result}")
if check < 0 or \
name in self.not_pre_stats and check > 1 or \
name not in self.not_pre_stats and check > 0.1 or \
name in self.not_pre_stats and check >= 1 or \
name not in self.not_pre_stats and check >= 0.1 or \
level > 6 or level < 1 or \
score > level*2 or score < 0:
log.error(_(f"校验失败,原数据或计算方法有误: {data}"))
Expand Down

0 comments on commit be36778

Please sign in to comment.