🐛 修复好感度满后签到失败

This commit is contained in:
H3d9
2023-05-06 13:46:18 +08:00
committed by GitHub
parent 18a220440b
commit 9e0add7bde
+3 -1
View File
@@ -148,7 +148,9 @@ def _generate_card(
ratio = 1 - (next_impression - user.impression) / (
next_impression - previous_impression
)
bar.resize(w=int(bar.w * ratio) or 1, h=bar.h)
if next_impression == 0:
ratio = 0
bar.resize(w=int(bar.w * ratio) or bar.w, h=bar.h)
bar_bk.paste(
bar,
alpha=True,