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