Extract EXIF data from images

This required a schema change and actually dumps all existing photo data
from the public reports page. That's probably fine since it's not
deployed to any customers so all data is currently test data.
This commit is contained in:
Eli Ribble 2026-01-16 14:52:11 +00:00
parent b95a3275ff
commit 079d20c086
No known key found for this signature in database
43 changed files with 7208 additions and 3094 deletions

View file

@ -338,6 +338,10 @@ func updatePortalData(ctx context.Context, client *arcgis.ArcGIS, user_id int32)
}
tx, err := db.PGInstance.BobDB.BeginTx(ctx, nil)
if err != nil {
return nil, fmt.Errorf("Failed to create transaction: %w", err)
}
_, err = models.ArcgisUserPrivileges.Delete(
dm.Where(
models.ArcgisUserPrivileges.Columns.UserID.EQ(psql.Arg(p.User.ID)),