idk i just hope it works

This commit is contained in:
pigwin
2025-01-04 21:15:45 +00:00
parent 75e007603f
commit 3c1b84197a

View File

@@ -64,7 +64,7 @@ func DBData(data *data.Data) {
// Send jobs to workers
go func() {
for _, journey := range data.ServiceDelivery.EstimatedTimetableDelivery[0].EstimatedVehicleJourney {
for _, journey := range data.ServiceDelivery.EstimatedTimetableDelivery[0].EstimatedJourneyVersionFrame.EstimatedVehicleJourney {
var values []interface{}
var datedVehicleJourneyRef, otherJson string
@@ -174,6 +174,10 @@ func DBData(data *data.Data) {
if err != nil {
fmt.Printf("Error inserting/updating estimated vehicle journey: %v\n", err)
continue
} else {
if 1 == 0 {
fmt.Printf("Action: %s, ID: %d\n", action, id)
}
}
// Add the missing code here