Skip to content

Commit

Permalink
Merge pull request #2020 from gtech-mulearn/dev
Browse files Browse the repository at this point in the history
Merge dev to dev-server
  • Loading branch information
Kochouseph26John authored Jun 7, 2024
2 parents 48e3d5e + b2762db commit fe88b5b
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions api/launchpad/launchpad_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,16 +41,12 @@ def get(self, request):
district_name=F("user_organization_link_user__org__district__name"),
state=F("user_organization_link_user__org__district__zone__state__name"),
time_=Max("karma_activity_log_user__created_at"),
).order_by("-karma")
).order_by("-karma", "time_")

paginated_queryset = CommonUtils.get_paginated_queryset(
users,
request,
["full_name", "karma", "org", "district_name", "state"],
sort_fields={
"karma": "karma",
"time_": "time_",
},
["full_name", "karma", "org", "district_name", "state"]
)

serializer = LaunchpadLeaderBoardSerializer(
Expand Down

0 comments on commit fe88b5b

Please sign in to comment.