Fix pep8
	
		
			
	
		
	
	
		
	
		
			All checks were successful
		
		
	
	
		
			
				
	
				gl/check check status: success (a236c3a34c54dc102e467fa4e827874044e57141)
				
			
		
		
	
	
				
					
				
			
		
			All checks were successful
		
		
	
	gl/check check status: success (a236c3a34c54dc102e467fa4e827874044e57141)
				
			This commit is contained in:
		@ -88,19 +88,20 @@ def main():
 | 
				
			|||||||
        data=data
 | 
					        data=data
 | 
				
			||||||
    )
 | 
					    )
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
def filter_docs(metadata):
 | 
					def filter_docs(metadata):
 | 
				
			||||||
    allowed_types = ["umn", "api-ref", "dev"]
 | 
					    allowed_types = ["umn", "api-ref", "dev"]
 | 
				
			||||||
    metadata['docs'] = [doc for doc in metadata['docs'] if doc['type'] in allowed_types]
 | 
					    metadata['docs'] = [doc for doc in metadata['docs']
 | 
				
			||||||
 | 
					                        if doc['type'] in allowed_types]
 | 
				
			||||||
    return metadata
 | 
					    return metadata
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
def getData(environment, all_doc_types):
 | 
					def getData(environment, all_doc_types):
 | 
				
			||||||
    metadatadata = metadata.service_types_with_doc_types(
 | 
					    metadatadata = metadata.service_types_with_doc_types(
 | 
				
			||||||
        environment=environment
 | 
					        environment=environment
 | 
				
			||||||
    )
 | 
					    )
 | 
				
			||||||
    print(all_doc_types)
 | 
					 | 
				
			||||||
    if not all_doc_types:
 | 
					    if not all_doc_types:
 | 
				
			||||||
        final_data = filter_docs(metadatadata)
 | 
					        final_data = filter_docs(metadatadata)
 | 
				
			||||||
    print(final_data)
 | 
					 | 
				
			||||||
    return final_data
 | 
					    return final_data
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user