fix
This commit is contained in:
@@ -356,12 +356,12 @@ func RecommendReprocessRawProductIDs(ctx context.Context, pool *pgxpool.Pool, co
|
||||
if isPromptLabelTitle(primaryName) || isPromptLabelTitle(processedName) || isPromptLabelTitle(name) {
|
||||
needs = true
|
||||
}
|
||||
if isWeakPriorEnhanceDescription(primaryDesc, primaryName, name) {
|
||||
if company.ShouldRefuseEnhanceHashSkip(primaryDesc, primaryName, name) {
|
||||
needs = true
|
||||
}
|
||||
if _, has := fs[FieldEnhanceInputHash]; !has {
|
||||
// Missing hash after weak clear / never enhanced — recommend when desc weak or empty category.
|
||||
if isWeakPriorEnhanceDescription(primaryDesc, primaryName, name) || strings.TrimSpace(category) == "" {
|
||||
if company.ShouldRefuseEnhanceHashSkip(primaryDesc, primaryName, name) || strings.TrimSpace(category) == "" {
|
||||
needs = true
|
||||
}
|
||||
}
|
||||
@@ -371,7 +371,7 @@ func RecommendReprocessRawProductIDs(ctx context.Context, pool *pgxpool.Pool, co
|
||||
if n == "" {
|
||||
n = primaryName
|
||||
}
|
||||
if fields.EnhanceInputHash == "" && isWeakPriorEnhanceDescription(d, n, primaryName, name) {
|
||||
if fields.EnhanceInputHash == "" && company.ShouldRefuseEnhanceHashSkip(d, n, primaryName, name) {
|
||||
needs = true
|
||||
break
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user