Fix failing tests again
This commit is contained in:
@@ -96,15 +96,13 @@ def filter_deals_by_criteria(
|
||||
# This allows "דירה" to match "דירת גג", "דירה בבניין", etc.
|
||||
if property_type_normalized.endswith('ה'):
|
||||
property_type_variant = property_type_normalized[:-1] + 'ת'
|
||||
if property_type_variant in deal_type_normalized:
|
||||
# Found variant match, continue to next filter
|
||||
pass
|
||||
elif property_type_normalized in deal_type_normalized:
|
||||
# Found original match, continue to next filter
|
||||
pass
|
||||
else:
|
||||
if property_type_variant not in deal_type_normalized and property_type_normalized not in deal_type_normalized:
|
||||
# No match found for either variant
|
||||
continue
|
||||
else:
|
||||
# For non-ה endings, do substring match
|
||||
if property_type_normalized not in deal_type_normalized:
|
||||
continue
|
||||
|
||||
# Room count filter
|
||||
if min_rooms is not None or max_rooms is not None:
|
||||
|
||||
Reference in New Issue
Block a user