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

Commit 81c2cae

Browse files
committed
Merge pull request #470 from appirio-tech/improve_control_of_achievement_visibility
improve control of visibility
2 parents 0afc487 + c8f684e commit 81c2cae

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

queries/get_user_basic_profile_achievements

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ SELECT
44
, -1 as id
55
FROM user_achievement ua
66
JOIN coder AS c ON c.coder_id = ua.coder_id
7-
WHERE ua.achievement_type_id in (1,4,5,6,7,8,9) AND handle_lower = LOWER('@handle@') AND c.status = 'A'
7+
INNER JOIN achievement_type_lu atl ON atl.achievement_type_id = ua.achievement_type_id
8+
WHERE atl.badge = 1 AND handle_lower = LOWER('@handle@') AND c.status = 'A'
89

910
UNION
1011
SELECT

0 commit comments

Comments
 (0)