timetable-extension #1
@ -71,7 +71,8 @@ func doCreations(creations []*upstreamApi.JsonScheduleV1) error {
|
||||
createDocuments := make([]database.Service, 0)
|
||||
for _, item := range creations {
|
||||
document := database.Service{}
|
||||
// Do type conversion here
|
||||
// Do type conversion here - REMOVE THIS LOG LINE, IT WILL CAUSE 10000s of log entries
|
||||
log.Msg.Debug("item", zap.Any("item", item))
|
||||
createDocuments = append(createDocuments, document)
|
||||
}
|
||||
|
||||
|
@ -60,7 +60,7 @@ func runCifUpdateDownload(cfg *helpers.Configuration, metadata *dbAccess.CifMeta
|
||||
return err
|
||||
}
|
||||
// Parse CIF file
|
||||
parsed, err = parseCifData(data)
|
||||
parsed, err := parseCifData(data)
|
||||
if err != nil {
|
||||
log.Msg.Error("Error parsing CIF data", zap.Error(err))
|
||||
return err
|
||||
@ -70,7 +70,8 @@ func runCifUpdateDownload(cfg *helpers.Configuration, metadata *dbAccess.CifMeta
|
||||
//// I need to check what the sequence looks like in a full download first.
|
||||
//// Regarding metadata, I will need to replace 'metadata *dbAccess.CifMetadata' with the new metadata to ensure it is checked correctly in each iteration.
|
||||
// Process CIF file
|
||||
// Update metadata variable
|
||||
|
||||
metadata = generateMetadata(&parsed.header)
|
||||
}
|
||||
|
||||
// Write metadata
|
||||
|
Loading…
Reference in New Issue
Block a user