Skip to content

Commit

Permalink
Change keys name in result dict in JobOfferRateStatsAPIView
Browse files Browse the repository at this point in the history
  • Loading branch information
DEENUU1 committed Jan 8, 2024
1 parent dd47b13 commit a04c344
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions offer/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,11 +222,11 @@ def get(self, request, slug):
result = {
"avg": avg,
"num_rates": num_rates,
"1_rate": rates[0],
"2_rate": rates[1],
"3_rate": rates[2],
"4_rate": rates[3],
"5_rate": rates[4],
"one_rate": rates[0],
"two_rate": rates[1],
"three_rate": rates[2],
"four_rate": rates[3],
"five_rate": rates[4],
}

return Response(result)

0 comments on commit a04c344

Please sign in to comment.