From 37a190c73ef56dbb2989465ef8047443c96ab4bd Mon Sep 17 00:00:00 2001 From: ChrisKent Date: Mon, 2 Dec 2024 21:53:38 +0000 Subject: [PATCH] Fixed bug with build index --- primal_page/__init__.py | 2 +- primal_page/build_index.py | 6 ++++-- pyproject.toml | 2 +- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/primal_page/__init__.py b/primal_page/__init__.py index c3fa782..e9139df 100644 --- a/primal_page/__init__.py +++ b/primal_page/__init__.py @@ -1 +1 @@ -__version__ = "1.11.1" +__version__ = "1.11.2" diff --git a/primal_page/build_index.py b/primal_page/build_index.py index b0423d9..264cd88 100644 --- a/primal_page/build_index.py +++ b/primal_page/build_index.py @@ -36,8 +36,10 @@ def parse_version( version_dict["ampliconsize"] = info.ampliconsize version_dict["articbedversion"] = info.articbedversion.value - # - version_dict["collections"] = info.collections + # Add the collections text + version_dict["collections"] = sorted( + (x.value for x in info.collections), + ) # Sort the collections if info.refselect: # Only add if it exists version_dict["refselect"] = info.refselect diff --git a/pyproject.toml b/pyproject.toml index ea3f496..e23faf1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "primal-page" -version = "1.11.1" +version = "1.11.2" description = "Tooling and schemas for the primerschemes index" authors = ["ChrisKent "] readme = "README.md"