fix: handover validate handoverbw的bug
This commit is contained in:
parent
143408ab4f
commit
b067ec2ea7
|
@ -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"]:
|
||||
|
|
Loading…
Reference in New Issue