mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2025-12-15 14:22:55 +08:00
🐛 修复日均存款显示
This commit is contained in:
parent
621c34e7fd
commit
4622451326
@ -287,10 +287,10 @@ class BankManager:
|
||||
e_date.reverse()
|
||||
e_amount.reverse()
|
||||
date = 1
|
||||
lasted_log = await MahiroBankLog.annotate().order_by("-create_time").first()
|
||||
lasted_log = await MahiroBankLog.annotate().order_by("create_time").first()
|
||||
if lasted_log:
|
||||
date = now.date() - lasted_log.create_time.date()
|
||||
date = date.days or 1
|
||||
date = (date.days or 1) + 1
|
||||
data = {
|
||||
"amount_sum": bank_data[0]["amount_sum"],
|
||||
"user_count": bank_data[0]["user_count"],
|
||||
|
||||
Loading…
Reference in New Issue
Block a user