From 3f98950490c23036bc6a410b428949b623d3c2ab Mon Sep 17 00:00:00 2001 From: Adnan Kattekaden Date: Wed, 15 Nov 2023 22:01:57 +0530 Subject: [PATCH] top 100 profile pic fix --- api/top100_coders/top100_view.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/top100_coders/top100_view.py b/api/top100_coders/top100_view.py index de988263..ac272efc 100644 --- a/api/top100_coders/top100_view.py +++ b/api/top100_coders/top100_view.py @@ -51,7 +51,7 @@ def get(self, request): INNER JOIN task_list AS tl ON tl.id = kal.task_id WHERE tl.hashtag = '#thc-realworld-problem-proposal' AND kal.appraiser_approved = TRUE) GROUP BY u.id - ORDER BY karma DESC, time_; + ORDER BY total_karma DESC, time_; """ with connection.cursor() as cursor: cursor.execute(query)