feat: 优化mlogbw bulk update 2

This commit is contained in:
caoqianming 2025-08-27 10:04:45 +08:00
parent fa7d3095de
commit 3e8bce688a
1 changed files with 1 additions and 1 deletions

View File

@ -969,7 +969,7 @@ class MlogbwViewSet(CustomModelViewSet):
mlog.cal_mlog_count_from_mlogb()
def after_bulk_update(self, objs):
mlogbIds = list(set([obj.mlogb for obj in objs]))
mlogbIds = list(set([obj["mlogb"] for obj in objs]))
for mlogbId in mlogbIds:
mlogbw = Mlogbw.objects.get(id=mlogbId)
Mlogbw.cal_count_notok(mlogbw.mlogb)