From 18f9e8e573e04e58c89c935a9ecdd47eba68895b Mon Sep 17 00:00:00 2001 From: Diane Trout Date: Mon, 25 Jul 2016 16:38:07 -0700 Subject: [PATCH] some date cells contain two dates, which is treated as a string --- htsworkflow/submission/encoded.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/htsworkflow/submission/encoded.py b/htsworkflow/submission/encoded.py index 6c30a59..2e91a60 100644 --- a/htsworkflow/submission/encoded.py +++ b/htsworkflow/submission/encoded.py @@ -560,6 +560,8 @@ class TypedColumnParser(object): def parse_sheet_timestamp_type(value): """Helper function to parse :date columns in sheet """ + if isinstance(value, str): + return value return value.strftime('%Y-%m-%d') @staticmethod -- 2.30.2