Add link from root upload page to upload pool detail page.

This commit is contained in:
Eli Ribble 2026-02-24 20:02:44 +00:00
parent a776c83557
commit c8f5408f27
No known key found for this signature in database
8 changed files with 20 additions and 85 deletions

View file

@ -79,6 +79,14 @@ func ProcessJob(ctx context.Context, file_id int32) error {
if err != nil {
return fmt.Errorf("parse file: %w", err)
}
_, err = psql.Update(
um.Table("fileupload.csv"),
um.SetCol("rowcount").ToArg(len(pools)),
um.Where(psql.Quote("id").EQ(psql.Arg(file_id))),
).Exec(ctx, txn)
if err != nil {
return fmt.Errorf("update csv row: %w", err)
}
err = bulkGeocode(ctx, txn, *file, pools)
if err != nil {
return fmt.Errorf("bulk geocode: %w", err)