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']):
|
for ind, item in enumerate(attrs['handoverb']):
|
||||||
wm = item["wm"]
|
wm = item["wm"]
|
||||||
if tracking == Material.MA_TRACKING_SINGLE:
|
if tracking == Material.MA_TRACKING_SINGLE:
|
||||||
handoverbw = item["handoverbw"]
|
handoverbw = item.get("handoverbw", [])
|
||||||
if handoverbw:
|
if handoverbw:
|
||||||
t_count += len(handoverbw)
|
t_count += len(handoverbw)
|
||||||
elif wm.count == item["count"]:
|
elif wm.count == item["count"]:
|
||||||
|
|
Loading…
Reference in New Issue