Qustionnaires Unliked Patient filter
This commit is contained in:
@@ -754,8 +754,8 @@ def _apply_value_replacement(value, replacements):
|
||||
return value
|
||||
|
||||
for value_before, value_after in replacements:
|
||||
# bool est une sous-classe de int en Python (True == 1, False == 0),
|
||||
# donc on bloque le match si l'un est bool et pas l'autre.
|
||||
# bool is a subclass of int in Python (True == 1, False == 0):
|
||||
# reject the match if one side is bool and the other is not.
|
||||
if isinstance(value, bool) != isinstance(value_before, bool):
|
||||
continue
|
||||
if value == value_before:
|
||||
|
||||
Reference in New Issue
Block a user