Fix TIPLOC/STANOX fetching code, fix logging for PIS metadata
All checks were successful
Go Test / test (push) Successful in 35s
All checks were successful
Go Test / test (push) Successful in 35s
This commit is contained in:
parent
2ef228a192
commit
f85a3da50e
@ -106,7 +106,7 @@ func GetTiplocFromCrs(crs string) (tiploc string, err error) {
|
|||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
coll := MongoClient.Database(DatabaseName).Collection(StationsCollection)
|
coll := MongoClient.Database(DatabaseName).Collection(CorpusCollection)
|
||||||
cursor, err := coll.Aggregate(context.Background(), pipeline)
|
cursor, err := coll.Aggregate(context.Background(), pipeline)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return "", err
|
return "", err
|
||||||
@ -144,7 +144,7 @@ func GetStanoxFromCrs(crs string) (stanox string, err error) {
|
|||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
coll := MongoClient.Database(DatabaseName).Collection(StationsCollection)
|
coll := MongoClient.Database(DatabaseName).Collection(CorpusCollection)
|
||||||
cursor, err := coll.Aggregate(context.Background(), pipeline)
|
cursor, err := coll.Aggregate(context.Background(), pipeline)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return "", err
|
return "", err
|
||||||
|
@ -47,7 +47,7 @@ func PutPisMetadata(version string) error {
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
log.Info("New Stations Metadata written", zap.String("version", version))
|
log.Info("New PIS Metadata written", zap.String("version", version))
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user