Skip to content

Commit

Permalink
Merge pull request #1970 from gtech-mulearn/dev
Browse files Browse the repository at this point in the history
Merge dev to dev-server
  • Loading branch information
jelanmathewjames authored May 29, 2024
2 parents 58b7eaa + 4669288 commit 935854b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions api/launchpad/launchpad_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,16 @@ class Leaderboard(APIView):
def get(self, request):
users = (
User.objects.filter(
karma_activity_log__task__event="launchpad",
karma_activity_log__appraiser_approved=True,
karma_activity_log__task__hashtag="#lp24-introduction",
karma_activity_log_user__task__event="launchpad",
karma_activity_log_user__appraiser_approved=True,
karma_activity_log_user__task__hashtag="#lp24-introduction",
)
.annotate(
karma=Sum("karma_activity_log__karma"),
org=F("userorganizationlink__title"),
karma=Sum("karma_activity_log_user__karma"),
org=F("userorganizationlink_user__title"),
district=F("district__name"),
state=F("district__zone__state__name"),
time_=Max("karma_activity_log__created_at"),
time_=Max("karma_activity_log_user__created_at"),
)
.order_by("-karma", "time_")
)
Expand Down

0 comments on commit 935854b

Please sign in to comment.