Skip to content

Commit

Permalink
skip count
Browse files Browse the repository at this point in the history
  • Loading branch information
AaronClaydon committed Nov 9, 2024
1 parent e2926aa commit 31c95a7
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
11 changes: 11 additions & 0 deletions pkg/realtime/vehicletracker/vehicleupdateevent.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ type VehicleUpdateEvent struct {
SourceType string

VehicleLocationUpdate *VehicleLocationUpdate
ServiceAlertUpdate *ServiceAlertUpdate

DataSource *ctdf.DataSource
RecordedAt time.Time
Expand Down Expand Up @@ -48,3 +49,13 @@ type VehicleLocationEventStopUpdate struct {
ArrivalOffset int
DepartureOffset int
}

type ServiceAlertUpdate struct {
Type ctdf.ServiceAlertType

Title string
Description string

ValidFrom time.Time
ValidUntil time.Time
}
4 changes: 4 additions & 0 deletions pkg/stats/calculator/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ func CountCountries(datasources map[string]int) map[string]int {
datasourceSplit := strings.Split(datasource, "-")
country := datasourceSplit[0]

if country == "travigo" {
continue
}

countries[country] += count
}

Expand Down

0 comments on commit 31c95a7

Please sign in to comment.