lrf преди 2 години
родител
ревизия
c02e781faa
променени са 1 файла, в които са добавени 1 реда и са изтрити 0 реда
  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';