mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2026-10-05 11:49:59 +08:00
FIX BUG
This commit is contained in:
@@ -148,7 +148,7 @@ def _generate_card(
|
||||
ratio = 1 - (next_impression - user.impression) / (
|
||||
next_impression - previous_impression
|
||||
)
|
||||
bar.resize(w=int(bar.w * ratio), h=bar.h)
|
||||
bar.resize(w=int(bar.w * ratio) or 1, h=bar.h)
|
||||
bar_bk.paste(
|
||||
bar,
|
||||
alpha=True,
|
||||
|
||||
Reference in New Issue
Block a user