forked from zhouruizhe/gmTouringMiniApp
Add check-in feature and update travel planner UI
This commit is contained in:
@@ -28,8 +28,6 @@ def _score(candidate: PoiCandidate, request: PlanRecommendationRequest) -> int:
|
||||
for interest in request.preferences.interests:
|
||||
desired_tags.update(INTEREST_TAGS.get(interest, set()))
|
||||
score += len(desired_tags.intersection(candidate.tag_codes)) * 8
|
||||
if request.preferences.children and "family_friendly" in candidate.tag_codes:
|
||||
score += 8
|
||||
return score
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user