#115 logical error in lact_bp milking

Затворени
отворен преди 4 години от Prinplup · 1 коментара
Prinplup коментира преди 4 години

The body of the code is:

if lactation['active'] > 0 and pain['nipples'] < 60: ... elseif lactation['active'] > 0 and pain['nipples'] < 60 and lactation['pc_aware'] <= 0:

Clearly if the first condition does not hold, the second branch will never be visited.

The body of the code is: if lactation['active'] > 0 and pain['nipples'] < 60: ... elseif lactation['active'] > 0 and pain['nipples'] < 60 and lactation['pc_aware'] <= 0: Clearly if the first condition does not hold, the second branch will never be visited.
Kevin_Smarts коментира преди 4 години
Притежател

Indeed you are corect. I have posted a fix and if I remember will go through the lactation files and streamline the if conditions a bit as its a little cumbersome currently. Thanks! :smile:

Indeed you are corect. I have posted a fix and if I remember will go through the lactation files and streamline the if conditions a bit as its a little cumbersome currently. Thanks! :smile:
Впишете се за да се присъедините към разговора.
Няма етикет
Няма етап
Няма изпълнител
2 участника
Зареждане...
Отказ
Запис
Все още няма съдържание.