From a28377d8f880b54ac0ba7a50e7227fc2a8feca95 Mon Sep 17 00:00:00 2001 From: Eli Ribble Date: Wed, 4 Mar 2026 22:04:22 +0000 Subject: [PATCH] Fix outside district count --- platform/pool.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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]