Provide time-of-day as fully expanded in JSON

This commit is contained in:
Eli Ribble 2026-03-09 19:23:34 +00:00
parent 55e62f3831
commit 7c98a52133
No known key found for this signature in database

View file

@ -37,10 +37,10 @@ type Nuisance struct {
SourceDescription string `db:"source_description" json:"source_description"`
SourceGutter bool `db:"source_gutter" json:"source_gutter"`
SourceStagnant bool `db:"source_stagnant" json:"source_stagnant"`
TODDay bool `db:"tod_day" json:"tod_day"`
TODEarly bool `db:"tod_early" json:"tod_early"`
TODEvening bool `db:"tod_evening" json:"tod_evening"`
TODNight bool `db:"tod_night" json:"tod_night"`
TODDay bool `db:"tod_day" json:"time_of_day_day"`
TODEarly bool `db:"tod_early" json:"time_of_day_early"`
TODEvening bool `db:"tod_evening" json:"time_of_day_evening"`
TODNight bool `db:"tod_night" json:"time_of_day_night"`
}
func NuisanceReportForOrganization(ctx context.Context, org_id int32) ([]Nuisance, error) {