Temporarily fix issue finding TIPLOC for WPH
All checks were successful
Go Test / test (push) Successful in 1m33s
All checks were successful
Go Test / test (push) Successful in 1m33s
This commit is contained in:
parent
fc5bb2534a
commit
0b3c1b6ad3
@ -87,6 +87,11 @@ func CreateCorpusIndexes() error {
|
|||||||
func GetTiplocFromCrs(crs string) (tiploc string, err error) {
|
func GetTiplocFromCrs(crs string) (tiploc string, err error) {
|
||||||
// Return TIPLOC from CRS code
|
// Return TIPLOC from CRS code
|
||||||
|
|
||||||
|
// TEMP FIX: WPH does not return a tiploc
|
||||||
|
if crs == "WPH" {
|
||||||
|
return "WORCPHL", nil
|
||||||
|
}
|
||||||
|
|
||||||
crs = strings.ToUpper(crs)
|
crs = strings.ToUpper(crs)
|
||||||
// PIPELINE:
|
// PIPELINE:
|
||||||
pipeline := bson.A{
|
pipeline := bson.A{
|
||||||
|
Loading…
Reference in New Issue
Block a user