Pretty all the things I missed

My laptop didn't have lefthook running. Oops.
This commit is contained in:
Eli Ribble 2026-03-27 14:06:50 -07:00
parent f60bde7fd9
commit 4bbfbdb9e6
No known key found for this signature in database
30 changed files with 490 additions and 487 deletions

View file

@ -21,8 +21,8 @@ type contentSource struct {
User platform.User
}
type contentTrap struct {
Trap platform.Trap
User platform.User
Trap platform.Trap
User platform.User
}
type contentLayoutTest struct {
User platform.User
@ -71,7 +71,7 @@ func getSource(ctx context.Context, r *http.Request, user platform.User) (*html.
}
treatment_models := platform.ModelTreatment(treatments)
data := contentSource{
Inspections: inspections,
Inspections: inspections,
Source: s,
Traps: traps,
Treatments: treatments,
@ -99,10 +99,10 @@ func getTrap(ctx context.Context, r *http.Request, user platform.User) (*html.Re
return nil, nhttp.NewError("Failed to get trap: %w", err)
}
/*
latlng, err := t.H3Cell.LatLng()
if err != nil {
return nil, nhttp.NewError("Failed to get latlng: %w", err)
}
latlng, err := t.H3Cell.LatLng()
if err != nil {
return nil, nhttp.NewError("Failed to get latlng: %w", err)
}
*/
data := contentTrap{
Trap: *t,