article bug fixed, changed image name in get image url

This commit is contained in:
abutalib-kiwi
2023-08-18 14:50:25 +05:30
parent 392086760f
commit 9a5447bca2
3 changed files with 6 additions and 5 deletions

View File

@ -224,8 +224,7 @@ class AnalyticsViewSet(GenericViewSet):
queryset = JuniorPoints.objects.prefetch_related('junior', 'junior__auth').annotate(rank=Window(
expression=Rank(),
order_by=[F('total_points').desc(), 'junior__created_at']
)).order_by('-total_points', 'junior__created_at')
)).order_by('-total_points', 'junior__created_at')[:15]
df_leaderboard = pd.DataFrame([
{
'Junior Name': f"{junior.junior.auth.first_name} {junior.junior.auth.last_name}"