Add link from root upload page to upload pool detail page.
This commit is contained in:
parent
a776c83557
commit
c8f5408f27
8 changed files with 20 additions and 85 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue