mirror of
https://github.com/xuthus83/LittlePaimon.git
synced 2025-04-12 23:29:37 +08:00
🐛 修复深渊星数会计算前8层问题
This commit is contained in:
parent
32858a5e00
commit
783e4b8eb3
@ -244,8 +244,8 @@ class AbyssInfo(Model):
|
||||
floor_info.end_times_up = end_times_up
|
||||
floor_info.end_times_down = end_times_down
|
||||
info.floors[floor['index']] = floor_info
|
||||
if floor['index'] in ['9', '10', '11', '12']:
|
||||
info.total_star += sum(l['star'] for l in floor['levels'])
|
||||
if floor['index'] in [9, 10, 11, 12]:
|
||||
info.total_star += sum(int(l['star']) for l in floor['levels'])
|
||||
|
||||
info.update_time = datetime.datetime.now()
|
||||
await info.save()
|
||||
|
Loading…
x
Reference in New Issue
Block a user