Skip to content
Snippets Groups Projects
Commit 9f711742 authored by Adam Laskowski's avatar Adam Laskowski
Browse files

SSDM-12812: Changed 'match-case' to 'if' to be compliant with python 3.6

parent 335030cc
No related branches found
No related tags found
1 merge request!40SSDM-13578 : 2PT : Database and V3 Implementation - include the new AFS "free"...
...@@ -45,12 +45,9 @@ class PropertyReformatter: ...@@ -45,12 +45,9 @@ class PropertyReformatter:
for key, value in properties.items(): for key, value in properties.items():
property_type = self.openbis.get_property_type(key) property_type = self.openbis.get_property_type(key)
match property_type.dataType: if property_type.dataType == 'TIMESTAMP':
case 'TIMESTAMP': properties[key] = self._format_timestamp(value)
properties[key] = self._format_timestamp(value)
case _:
pass
return properties return properties
def _format_timestamp(self, value): def _format_timestamp(self, value):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment