Update hardConstraint.py
Browse files- hardConstraint.py +1 -1
hardConstraint.py
CHANGED
@@ -141,7 +141,7 @@ def is_valid_room_rule(question, tested_data):
|
|
141 |
if len(res) > 0:
|
142 |
if question['local_constraint']['house rule'] == 'smoking' and 'No smoking' in str(res['house_rules'].values[0]):
|
143 |
return False, f"The house rule should be {question['local_constraint']['house rule']}."
|
144 |
-
if question['local_constraint']['house rule'] == '
|
145 |
return False, f"The house rule should be {question['local_constraint']['house rule']}."
|
146 |
if question['local_constraint']['house rule'] == 'children under 10' and 'No children under 10' in str(res['house_rules'].values[0]):
|
147 |
return False, f"The house rule should be {question['local_constraint']['house rule']}."
|
|
|
141 |
if len(res) > 0:
|
142 |
if question['local_constraint']['house rule'] == 'smoking' and 'No smoking' in str(res['house_rules'].values[0]):
|
143 |
return False, f"The house rule should be {question['local_constraint']['house rule']}."
|
144 |
+
if question['local_constraint']['house rule'] == 'parties' and 'No parties' in str(res['house_rules'].values[0]):
|
145 |
return False, f"The house rule should be {question['local_constraint']['house rule']}."
|
146 |
if question['local_constraint']['house rule'] == 'children under 10' and 'No children under 10' in str(res['house_rules'].values[0]):
|
147 |
return False, f"The house rule should be {question['local_constraint']['house rule']}."
|