Skip to content

Commit

Permalink
Merge pull request #1975 from jelanmathewjames/dev
Browse files Browse the repository at this point in the history
fix launchpad api
  • Loading branch information
jelanmathewjames authored May 29, 2024
2 parents cbc6bf2 + 9eaf5f7 commit b1cdf9b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions api/launchpad/launchpad_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,8 @@ def get(self, request):
)
.prefetch_related(
Prefetch(
"user_organization_link_user__title",
"user_organization_link_user__org__title",
queryset=UserOrganizationLink.objects.all(),
to_attr="org",
),
).select_related("district", "district__zone__state")
.annotate(
Expand All @@ -38,7 +37,7 @@ def get(self, request):
),
time_=Max("karma_activity_log_user__created_at"),
district_name=F("district__name"),
state=F("district__zone__state__name"),
state=F("district__zone__state__name")
)
.order_by("-karma", "time_")
)
Expand Down

0 comments on commit b1cdf9b

Please sign in to comment.