query: fix comment describing get_versions()

The comment was plain wrong. It said we returned a list.
We return nested OrderedDict structures.

Signed-off-by: Théo Lebrun <theo.lebrun@bootlin.com>
This commit is contained in:
Théo Lebrun 2025-03-07 12:08:08 +01:00
parent 6f03eee42c
commit e1fecd1c3f

View file

@ -142,9 +142,8 @@ class Query:
entries_str = decode(self.script('get-dir', version, path))
return entries_str.split("\n")[:-1]
# Returns the list of indexed versions in the following format:
# topmenu submenu tag
# Example: v3 v3.1 v3.1-rc10
# Returns indexed versions, as a tree of OrderedDict.
# It has a depth of 3, for example: v3 v3.1 v3.1-rc10.
def get_versions(self):
versions = OrderedDict()