Skip pools without an address
This commit is contained in:
parent
b7eff027e7
commit
2ddf015a68
1 changed files with 2 additions and 9 deletions
|
|
@ -75,15 +75,8 @@ func JobCommit(ctx context.Context, txn bob.Executor, file_id int32) error {
|
|||
return fmt.Errorf("get parcel: %w", err)
|
||||
}
|
||||
} else {
|
||||
a = &types.Address{
|
||||
Country: "usa",
|
||||
Locality: row.AddressLocality,
|
||||
Number: row.AddressNumber,
|
||||
PostalCode: row.AddressPostalCode,
|
||||
Region: row.AddressRegion,
|
||||
Street: row.AddressStreet,
|
||||
Unit: "",
|
||||
}
|
||||
log.Warn().Int32("row_id", row.ID).Msg("does not havea matching address, and therefore can't become a site")
|
||||
continue
|
||||
}
|
||||
var site *models.Site
|
||||
site, err = models.Sites.Query(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue