diff --git a/api/dashboard/discord_moderator/discord_mod_views.py b/api/dashboard/discord_moderator/discord_mod_views.py index 04a791fa..3f9b7538 100644 --- a/api/dashboard/discord_moderator/discord_mod_views.py +++ b/api/dashboard/discord_moderator/discord_mod_views.py @@ -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(