fix: handover validate handoverbw的bug

This commit is contained in:
caoqianming 2025-03-14 09:57:28 +08:00
parent 143408ab4f
commit b067ec2ea7
1 changed files with 1 additions and 1 deletions

View File

@ -955,7 +955,7 @@ class HandoverSerializer(CustomModelSerializer):
for ind, item in enumerate(attrs['handoverb']):
wm = item["wm"]
if tracking == Material.MA_TRACKING_SINGLE:
handoverbw = item["handoverbw"]
handoverbw = item.get("handoverbw", [])
if handoverbw:
t_count += len(handoverbw)
elif wm.count == item["count"]: