Skip to content

Commit

Permalink
fix wrong placement of group_score accounting
Browse files Browse the repository at this point in the history
  • Loading branch information
blackav committed Nov 17, 2024
1 parent d594aee commit e51c530
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions lib/runlog.c
Original file line number Diff line number Diff line change
Expand Up @@ -954,10 +954,6 @@ run_get_attempts(
ASSERT(re->user_id == sample_re->user_id);
if (i >= runid) break;

if (group_merge_flag > 0 && re->group_scores) {
group_scores_merge_1(p_group_count, p_group_scores, run_get_group_scores(state, re->group_scores));
}

if (re->status == RUN_VIRTUAL_START || re->status == RUN_VIRTUAL_STOP) continue;
if (re->prob_id != sample_re->prob_id) continue;
if ((re->status == RUN_COMPILE_ERR) && skip_ce_flag) continue;
Expand All @@ -975,13 +971,18 @@ run_get_attempts(
}
if (re->status == RUN_IGNORED) continue;
if (re->is_hidden) continue;
if (re->status == RUN_OK || re->status == RUN_PENDING || re->status == RUN_SUMMONED) continue;
if (re->status == RUN_REJECTED) continue;
if (re->status == RUN_DISQUALIFIED) {
m++;
} else {
n++;
continue;
}

if (group_merge_flag > 0 && re->group_scores) {
group_scores_merge_1(p_group_count, p_group_scores, run_get_group_scores(state, re->group_scores));
}

if (re->status == RUN_OK || re->status == RUN_PENDING || re->status == RUN_SUMMONED) continue;
++n;
}

if (pattempts) *pattempts = n;
Expand Down

0 comments on commit e51c530

Please sign in to comment.