From efbef12080fc1672857c57da64aab35501584537 Mon Sep 17 00:00:00 2001 From: Eli Ribble Date: Tue, 24 Feb 2026 20:34:32 +0000 Subject: [PATCH] Only show CSV as parse after geocoding. --- platform/csv/pool.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/platform/csv/pool.go b/platform/csv/pool.go index 56d443ea..0c1c00af 100644 --- a/platform/csv/pool.go +++ b/platform/csv/pool.go @@ -91,6 +91,10 @@ func ProcessJob(ctx context.Context, file_id int32) error { if err != nil { return fmt.Errorf("bulk geocode: %w", err) } + file.Update(ctx, txn, &models.FileuploadFileSetter{ + Status: omit.From(enums.FileuploadFilestatustypeParsed), + }) + log.Info().Int32("file.ID", file.ID).Msg("Set file to parsed") txn.Commit(ctx) return nil } @@ -205,10 +209,6 @@ func parseFile(ctx context.Context, txn bob.Tx, file models.FileuploadFile) ([]* row, err := reader.Read() if err != nil { if err == io.EOF { - file.Update(ctx, txn, &models.FileuploadFileSetter{ - Status: omit.From(enums.FileuploadFilestatustypeParsed), - }) - log.Info().Int32("file.ID", file.ID).Msg("Set file to parsed") return pools, nil } return pools, fmt.Errorf("Failed to read all CSV records for file %d: %w", file.ID, err)