Skip to content

Commit

Permalink
Merge branch 'main' into yongseongkim/place-favorite-duplicated-rows
Browse files Browse the repository at this point in the history
  • Loading branch information
yongseongkim authored Sep 18, 2024
2 parents 3dc0fba + 9406650 commit 28dc918
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ class PlaceSearchService(
buildingAccessibility = ba,
placeAccessibility = pa,
distance = currentLocation?.let { LocationUtils.calculateDistance(it, p.location) },
accessibilityScore = pa?.let { AccessibilityScore.get(pa, ba) },
accessibilityScore = pa?.let { AccessibilityScore.get(pa, ba)?.coerceIn(0.0..5.0) },
isAccessibilityRegistrable = accessibilityApplicationService.isAccessibilityRegistrable(p.building),
)
}
Expand All @@ -111,7 +111,7 @@ class PlaceSearchService(
limit: Int?,
): List<SearchPlacesResult> {
return this.filter { result ->
val scoreChecked = maxAccessibilityScore?.let { result.accessibilityScore ?: Double.MAX_VALUE <= it } ?: true
val scoreChecked = maxAccessibilityScore?.let { (result.accessibilityScore ?: Double.MAX_VALUE) <= it } ?: true
val slopeChecked = hasSlope?.let { result.placeAccessibility?.hasSlope == it } ?: true
val accessibilityRegisteredChecked = isAccessibilityRegistered?.let { (result.placeAccessibility !== null) == it } ?: true
scoreChecked && slopeChecked && accessibilityRegisteredChecked
Expand Down
2 changes: 1 addition & 1 deletion infra/helm/scc-server/values-prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ image:
repository: public.ecr.aws/i6n1n6v2/scc-server
pullPolicy: Always
# Overrides the image tag whose default is the chart appVersion.
tag: 0.16.7
tag: 0.16.8
imagePullSecrets: []
nameOverride: ""
fullnameOverride: ""
Expand Down

0 comments on commit 28dc918

Please sign in to comment.