Skip to content
This repository was archived by the owner on Jan 23, 2025. It is now read-only.

Commit c2333b8

Browse files
committed
fix country code lookup
1 parent 401b036 commit c2333b8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/main/resources/sql/challenge-feeder/detail/get_registrants.sql

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,15 @@ select
1010
ELSE decode(ri4.value, 'N/A', '0', ri4.value)::int
1111
END AS rating,
1212
ri5.value::int AS reliability,
13-
a.country_code AS countryCode,
13+
c.iso_alpha3_code AS countryCode,
1414
p.project_id AS challengeId
1515
from resource rur
1616
, resource_info ri1
1717
, project p
1818
, user u
1919
, common_oltp\:user_address_xref uax
2020
, common_oltp\:address a
21+
, common_oltp\:country c
2122
, project_category_lu pcl
2223
, outer resource_info ri4
2324
, outer resource_info ri5
@@ -37,4 +38,5 @@ select
3738
and ar.algo_rating_type_id=3
3839
and uax.user_id = u.user_id
3940
and a.address_id = uax.address_id
41+
and a.country_code = c.country_code
4042
and {filter}

0 commit comments

Comments
 (0)