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:
parent
2dbeaff113
commit
a236c3a34c
@ -66,7 +66,7 @@ def parse_args():
|
||||
|
||||
|
||||
def main():
|
||||
|
||||
|
||||
args = parse_args()
|
||||
|
||||
if args.debug:
|
||||
@ -88,19 +88,20 @@ def main():
|
||||
data=data
|
||||
)
|
||||
|
||||
|
||||
def filter_docs(metadata):
|
||||
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
|
||||
|
||||
|
||||
def getData(environment, all_doc_types):
|
||||
metadatadata = metadata.service_types_with_doc_types(
|
||||
environment=environment
|
||||
)
|
||||
print(all_doc_types)
|
||||
if not all_doc_types:
|
||||
final_data = filter_docs(metadatadata)
|
||||
print(final_data)
|
||||
return final_data
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user