feat: Enhance data models and sorting logic for investors and projects

This commit is contained in:
bolade
2025-11-11 13:09:30 +01:00
parent 0e4763bf4f
commit 5e83734acf
6 changed files with 129 additions and 35 deletions
+6 -4
View File
@@ -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