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

Commit

Permalink
Merge pull request #470 from appirio-tech/improve_control_of_achievem…
Browse files Browse the repository at this point in the history
…ent_visibility

improve control of visibility
  • Loading branch information
mdesiderio committed May 17, 2016
2 parents 0afc487 + c8f684e commit 81c2cae
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion queries/get_user_basic_profile_achievements
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ SELECT
, -1 as id
FROM user_achievement ua
JOIN coder AS c ON c.coder_id = ua.coder_id
WHERE ua.achievement_type_id in (1,4,5,6,7,8,9) AND handle_lower = LOWER('@handle@') AND c.status = 'A'
INNER JOIN achievement_type_lu atl ON atl.achievement_type_id = ua.achievement_type_id
WHERE atl.badge = 1 AND handle_lower = LOWER('@handle@') AND c.status = 'A'

UNION
SELECT
Expand Down

0 comments on commit 81c2cae

Please sign in to comment.