idk i just hope it works
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user