fix quality obj matching
This commit is contained in:
parent
1a8ec40b34
commit
9afb5345ac
2
obj.go
2
obj.go
@ -735,7 +735,7 @@ func getSilentObjItemID(code string, name string) int64 {
|
|||||||
//log.Printf("Matching item name %s with %s.\n", name, obj.Name)
|
//log.Printf("Matching item name %s with %s.\n", name, obj.Name)
|
||||||
return obj.ObjID64
|
return obj.ObjID64
|
||||||
}
|
}
|
||||||
if ok, _ := regexp.MatchString(`^a[0-9]+[a-e])$`, code); ok {
|
if ok, _ := regexp.MatchString(`^a[0-9]+[a-e]$`, code); ok {
|
||||||
code2 := code[:len(code)-1]
|
code2 := code[:len(code)-1]
|
||||||
log.Printf("Matching quality item code %s with %s.\n", code, code2)
|
log.Printf("Matching quality item code %s with %s.\n", code, code2)
|
||||||
if obj, ok := cacheObjItem[code2]; ok {
|
if obj, ok := cacheObjItem[code2]; ok {
|
||||||
|
Loading…
Reference in New Issue
Block a user