feat: Enhance data models and sorting logic for investors and projects
This commit is contained in:
@@ -174,9 +174,10 @@ def _calculate_project_fund_compatibility(
|
||||
or fund_geo_lower in project_location_lower
|
||||
):
|
||||
geo_score = 15
|
||||
# Check for common geographic terms or regional overlap
|
||||
# Check for common geographic terms or regional overlap (continent/country matching)
|
||||
elif _check_geographic_overlap(project_location_lower, fund_geo_lower):
|
||||
geo_score = 12
|
||||
# Give higher score for continent/country matches (e.g., Germany -> Europe)
|
||||
geo_score = 18
|
||||
|
||||
total_score += geo_score
|
||||
|
||||
@@ -298,9 +299,10 @@ def _calculate_project_investor_direct_compatibility(
|
||||
project_location_lower in investor_geo_lower
|
||||
or investor_geo_lower in project_location_lower
|
||||
):
|
||||
geo_score = 10
|
||||
geo_score = 15
|
||||
elif _check_geographic_overlap(project_location_lower, investor_geo_lower):
|
||||
geo_score = 5
|
||||
# Give higher score for continent/country matches (e.g., Germany -> Europe)
|
||||
geo_score = 18
|
||||
|
||||
total_score += geo_score
|
||||
|
||||
|
||||
Reference in New Issue
Block a user