uselotus / lotus

File .deepsource.toml not found in the default branch of the repository root. Please refer to the docs.

Consider removing the commented out code block PY-W0069
Anti-pattern
Major
a year agoa year old
Consider removing the commented out code block
 610            organization_pk = result
 611        serializer = GetCustomerAccessRequestSerializer(data=request.query_params)
 612        serializer.is_valid(raise_exception=True)
 613        # try: 614        #     username = self.request.user.username
 615        # except:
 616        #     username = None
Consider removing the commented out code block
28        return Organization.objects.filter(pk=organization.pk)
29
30
31# class OrganizationView(APIView):32#     permission_classes = [IsAuthenticated]
33
34#     def get(self, request, format=None):
Consider removing the commented out code block
31# class OrganizationView(APIView):
32#     permission_classes = [IsAuthenticated]
33
34#     def get(self, request, format=None):35#         """
36#         Get the current settings for the organization.
37#         """
Consider removing the commented out code block
135        track_event_payload,
136        get_events_with_org_customer_id,
137    ):
138        # batch_events=true139        setup_dict = track_event_test_common_setup(
140            idempotency_already_created=False, customer_id_exists=True
141        )
Consider removing the commented out code block
 91        track_event_payload,
 92        get_events_with_org_customer_id,
 93    ):
 94        # idempotency_already_created=false, customer_id_exists = true 95        setup_dict = track_event_test_common_setup(
 96            idempotency_already_created=False, customer_id_exists=True
 97        )