Last analyzed b6a77aa a month ago
Default analysis branch is
Currently analyzing run
Re-defined variable from outer scope PYL-W0621
Anti-pattern
a month ago5 months old
Redefining name 'meetings' from outer scope (line 52)
 55        case "GET":
 56            match (uid):
 57                case "upcoming":
 58                    meetings = ( 59                        MeetingRoom.objects.filter(
 60                            time__gt=datetime.datetime.now(),
 61                        )
Redefining name 'profile' from outer scope (line 25)
232    match request.method:
233        case "GET":
234            try:
235                profile = SocialProfile.objects.get(user=request.user)236            except SocialProfile.DoesNotExist:
237                return Response(
238                    {"error": "User does not have a Social Profile"}, status=404
Redefining name 'profile' from outer scope (line 25)
 31    match request.method:
 32        case "GET":
 33            try:
 34                profile = SocialProfile.objects.get(user=request.user) 35            except SocialProfile.DoesNotExist:
 36                return Response(
 37                    {"error": "User does not have a Social Profile"}, status=404
Redefining name 'profile' from outer scope (line 25)
 67    match request.method:
 68        case "GET":
 69            try:
 70                profile = SocialProfile.objects.get(user=request.user) 71            except SocialProfile.DoesNotExist:
 72                return Response(
 73                    {"error": "User does not have a Social Profile"}, status=404
Redefining name 'profile' from outer scope (line 25)
118    match request.method:
119        case "GET":
120            try:
121                profile = SocialProfile.objects.get(user=request.user)122            except SocialProfile.DoesNotExist:
123                return Response(
124                    {"error": "User does not have a Social Profile"}, status=404