Description, function name
All checks were successful
gl/check check status: success (c52d106085e40e0c48d7da16124a1188be3327c5)
gl/gate gate status: success (c52d106085e40e0c48d7da16124a1188be3327c5)

This commit is contained in:
SebastianGode 2023-06-12 15:25:23 +02:00
parent f29f6d7b9e
commit c52d106085

View File

@ -112,12 +112,12 @@ class Services(object):
res[cat].setdefault("docs", []) res[cat].setdefault("docs", [])
res[cat]["docs"].append(res_doc) res[cat]["docs"].append(res_doc)
return res return res
def services_with_docs_type_and_title(self, environment=None):
"""Retrieve type and title from services and corresponding docs
:param str environment: Optional service environment. Influeces def service_types_with_doc_types(self, environment=None):
"repository" field """Retrieve type and title from services and corresponding docs.
As well as a list of all doc_types.
:param str environment: Optional service environment.
""" """
service_list = [] service_list = []
doc_types = [] doc_types = []
@ -127,7 +127,7 @@ class Services(object):
continue continue
if not service["service_type"]: if not service["service_type"]:
continue continue
doc_list = [] doc_list = []
for doc in self.all_docs: for doc in self.all_docs:
if "environment" in doc: if "environment" in doc: