Skip to content

Commit

Permalink
Merge pull request #1758 from adnankattekaden/dev
Browse files Browse the repository at this point in the history
appraiser default
  • Loading branch information
adnankattekaden authored Dec 6, 2023
2 parents 28268d8 + 192e7a5 commit 6abe9ef
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions api/dashboard/discord_moderator/discord_mod_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,7 @@ class LeaderBoard(APIView):
authentication_classes = [CustomizePermission]

def get(self, request):
choice = request.query_params.get("option")

if choice not in ["peer", "appraiser"]:
return CustomResponse(response="Bad Request").get_failure_response()
choice = request.query_params.get("option", "peer")

approval_field = f"{choice}_approved_by"
logs_with_approval = KarmaActivityLog.objects.filter(
Expand Down

0 comments on commit 6abe9ef

Please sign in to comment.