Explorar el Código

warning: estrusItems update

Yi hace 2 meses
padre
commit
afc74f8c7b
Se han modificado 1 ficheros con 4 adiciones y 2 borrados
  1. 4 2
      model/neck_ring_estrus_warning.go

+ 4 - 2
model/neck_ring_estrus_warning.go

@@ -110,11 +110,13 @@ func (n NeckRingEstrusWarningSlice) ToPB(
 					break
 				}
 			}
-		} else {
+		}
+
+		if matingWindowPeriodKind > pasturePb.MatingWindowPeriod_Invalid {
 			found = isIPeriod(matingWindowPeriodKind, nowTime, optimumMatingStartTime, optimumMatingEndTime)
 		}
 
-		if !found {
+		if found {
 			continue
 		}