From b307bf1302edfdcfaa714ae288bd04b2cc1e1aa3 Mon Sep 17 00:00:00 2001 From: Dave Lawrence Date: Fri, 19 Jul 2024 10:49:58 +0930 Subject: [PATCH] issue #1120 - handle null version --- seqauto/models/models_sequencing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/seqauto/models/models_sequencing.py b/seqauto/models/models_sequencing.py index da8023ded..1af70917e 100644 --- a/seqauto/models/models_sequencing.py +++ b/seqauto/models/models_sequencing.py @@ -109,7 +109,7 @@ def get_absolute_url(self): @staticmethod def get_full_name(name: str, version: int): name = name - if version > 1: + if version and version > 1: name += f" (version {version})" return name