projects
/
htsworkflow.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eba8723
)
some date cells contain two dates, which is treated as a string
author
Diane Trout
<diane@ghic.org>
Mon, 25 Jul 2016 23:38:07 +0000
(16:38 -0700)
committer
Diane Trout
<diane@ghic.org>
Mon, 25 Jul 2016 23:38:07 +0000
(16:38 -0700)
htsworkflow/submission/encoded.py
patch
|
blob
|
history
diff --git
a/htsworkflow/submission/encoded.py
b/htsworkflow/submission/encoded.py
index 6c30a59267538241b8c194b0fe4adeea949638b1..2e91a60506e3f3ccbaba37c28e6351c9fccf8b26 100644
(file)
--- 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