From d61a8ab2558448d0e83f95dee171e4ecc53c5ec3 Mon Sep 17 00:00:00 2001 From: Adnan Kattekaden <71538497+adnankattekaden@users.noreply.github.com> Date: Thu, 9 Nov 2023 02:56:05 +0530 Subject: [PATCH] top100 coders fix --- api/top100_coders/top100_view.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/api/top100_coders/top100_view.py b/api/top100_coders/top100_view.py index fe854039..72c75f06 100644 --- a/api/top100_coders/top100_view.py +++ b/api/top100_coders/top100_view.py @@ -10,9 +10,10 @@ def get(self, request): SELECT u.first_name, u.last_name, + u.profile_pic, SUM(kal.karma) AS total_karma, org.title AS org, - COALESCE(org.dis, d.name) AS district, + COALESCE(org.dis, d.name) AS dis, COALESCE(org.state, s.name) AS state, MAX(kal.created_at) AS time_ FROM karma_activity_log AS kal