From 9f711742ec3bb5b686579a8967d0f39ccefb97a4 Mon Sep 17 00:00:00 2001 From: alaskowski <alaskowski@ethz.ch> Date: Wed, 29 Mar 2023 15:08:57 +0200 Subject: [PATCH] SSDM-12812: Changed 'match-case' to 'if' to be compliant with python 3.6 --- .../src/python/pybis/property_reformatter.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/api-openbis-python3-pybis/src/python/pybis/property_reformatter.py b/api-openbis-python3-pybis/src/python/pybis/property_reformatter.py index ff9acad285b..12bab087874 100644 --- a/api-openbis-python3-pybis/src/python/pybis/property_reformatter.py +++ b/api-openbis-python3-pybis/src/python/pybis/property_reformatter.py @@ -45,12 +45,9 @@ class PropertyReformatter: for key, value in properties.items(): property_type = self.openbis.get_property_type(key) - match property_type.dataType: - case 'TIMESTAMP': - properties[key] = self._format_timestamp(value) - case _: - pass - + if property_type.dataType == 'TIMESTAMP': + properties[key] = self._format_timestamp(value) + return properties def _format_timestamp(self, value): -- GitLab