@@ -310,9 +310,9 @@ def save(self):
310310 }
311311
312312 if (
313- (isinstance (actor , Person ) and self .object .type in ["Note" , "Review" ])
314- or (isinstance (actor , Service ) and self .object .type == "Repository" )
315- or (isinstance (actor , Purl ) and self .object .type == "Note" )
313+ (isinstance (actor , Person ) and self .object .type in ["Note" , "Review" ])
314+ or (isinstance (actor , Service ) and self .object .type == "Repository" )
315+ or (isinstance (actor , Purl ) and self .object .type == "Note" )
316316 ):
317317 for key , value in updated_param [self .object .type ].items ():
318318 if value :
@@ -346,9 +346,9 @@ def save(self):
346346 return self .failed_ap_rs ()
347347
348348 if (
349- (type (actor ) is Person and self .object .type in ["Note" , "Review" ])
350- or (type (actor ) is Purl and self .object .type in ["Note" ])
351- or (type (actor ) is Service and self .object .type == ["Repository" , "Purl" ])
349+ (type (actor ) is Person and self .object .type in ["Note" , "Review" ])
350+ or (type (actor ) is Purl and self .object .type in ["Note" ])
351+ or (type (actor ) is Service and self .object .type == ["Repository" , "Purl" ])
352352 ):
353353 instance = self .object .get_object ()
354354 instance .delete ()
0 commit comments