File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -79,8 +79,7 @@ def generate_needs_schema(
7979        }
8080
8181    for  name  in  exclude_properties :
82-         if  name  in  properties :
83-             del  properties [name ]
82+         properties .pop (name , None )
8483
8584    return  {
8685        "$schema" : "http://json-schema.org/draft-07/schema#" ,
Original file line number Diff line number Diff line change @@ -337,7 +337,7 @@ def _copy_filtered(
337337    ) ->  NeedsAndPartsListView :
338338        """Create a new view with only the needs/parts with the given ids.""" 
339339        if  self ._selected_ids  is  None :
340-             selected_ids  =  { n :  None   for   n   in   ids } 
340+             selected_ids  =  dict . fromkeys ( ids ) 
341341        else :
342342            selected_ids  =  {n : None  for  n  in  ids  if  n  in  self ._selected_ids }
343343        return  NeedsAndPartsListView (_indexes = self ._indexes , _selected_ids = selected_ids )
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments