diff --git a/apps/wpm/services.py b/apps/wpm/services.py index b06e4bd8..5b2ff402 100644 --- a/apps/wpm/services.py +++ b/apps/wpm/services.py @@ -566,6 +566,7 @@ def cal_material_count_from_mlog(mlog: Mlog): matid_list.append(matid[0]) if matid[1]: matid_list.append(matid[1]) + matid_list = list(set(matid_list)) cal_material_count(matid_list)