Fix outside district count
This commit is contained in:
parent
9c3d2ba3df
commit
a28377d8f8
1 changed files with 4 additions and 3 deletions
|
|
@ -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]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue