diff --git a/platform/pool.go b/platform/pool.go index 265510a7..1576e31f 100644 --- a/platform/pool.go +++ b/platform/pool.go @@ -86,13 +86,14 @@ func getUploadPoollistDetail(ctx context.Context, file *models.FileuploadFile) ( if r.IsNew { count_new = count_new + 1 status = "new" - } else if !r.IsInDistrict { - count_outside = count_outside + 1 - status = "outside" } else { count_existing = count_existing + 1 status = "existing" } + if !r.IsInDistrict { + count_outside++ + status = "outside" + } tags := db.ConvertFromPGData(r.Tags) // add 2 here because our file lines are 1-indexed and we skip the header line, but we are ranging 0-indexed errors, ok := errors_by_line[r.LineNumber]