lrf 2 năm trước cách đây
mục cha
commit
c02e781faa
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      app/service/statistics.js

+ 1 - 0
app/service/statistics.js

@@ -62,6 +62,7 @@ class StatisticsService extends CrudService {
     let score = 0; // 积分
     for (const match of list) {
       const { red_id, blue_id, red_branch, blue_branch } = match;
+      if (!red_branch && !blue_branch) continue;
       let teamInMatch = 'blue';
       if (red_id === team_id) teamInMatch = 'red';
       else if (blue_id === team_id) teamInMatch = 'blue';