Skip to content

Commit

Permalink
Update top100_view.py
Browse files Browse the repository at this point in the history
  • Loading branch information
adnankattekaden authored Nov 14, 2023
1 parent 8472066 commit dff4d90
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions api/top100_coders/top100_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,9 @@ def get(self, request):
GROUP BY uol.user_id
ORDER BY
CASE WHEN org.org_type = 'College' THEN 1
WHEN org.org_type = 'Company' THEN 2
ELSE 3
WHEN org.org_type = 'School' THEN 2
WHEN org.org_type = 'Company' THEN 3
ELSE 4
END
) AS org ON org.user_id = u.id
LEFT JOIN district AS d ON d.id = u.district_id
Expand Down

0 comments on commit dff4d90

Please sign in to comment.