This commit is contained in:
HibiKier
2023-03-19 21:05:34 +08:00
parent f8371e7330
commit 1046815d37
36 changed files with 704 additions and 582 deletions
+1 -1
View File
@@ -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,