Filter for disable_import #232

Merged
zuul merged 5 commits from disable_import into main 2024-06-24 12:35:14 +00:00
4 changed files with 21 additions and 1 deletions
Showing only changes of commit ec7e0f0eab - Show all commits

View File

@ -12,7 +12,6 @@ def main():
data = otc_metadata.services.Services()
data._sort_data()
docs = data.docs_html_by_category("internal")
# Filter out documents with "disable_import": True
@ -21,7 +20,7 @@ def main():
filtered_docs = []
for doc in service['docs']:
# Check if the document does not have 'disable_import' set to True
# Check if the document doesnt have 'disable_import' on True
if not doc.get('disable_import'):
filtered_docs.append(doc)