From c52d106085e40e0c48d7da16124a1188be3327c5 Mon Sep 17 00:00:00 2001 From: SebastianGode Date: Mon, 12 Jun 2023 15:25:23 +0200 Subject: [PATCH] Description, function name --- otc_metadata/services.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/otc_metadata/services.py b/otc_metadata/services.py index abdf59b3..f62ca3c0 100644 --- a/otc_metadata/services.py +++ b/otc_metadata/services.py @@ -112,12 +112,12 @@ class Services(object): res[cat].setdefault("docs", []) res[cat]["docs"].append(res_doc) 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 - "repository" field + def service_types_with_doc_types(self, environment=None): + """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 = [] doc_types = [] @@ -127,7 +127,7 @@ class Services(object): continue if not service["service_type"]: continue - + doc_list = [] for doc in self.all_docs: if "environment" in doc: