Skip to content

Commit

Permalink
Fixed bug of converting datetime.date to datetime.date
Browse files Browse the repository at this point in the history
  • Loading branch information
Noah Engel committed Jan 23, 2020
1 parent 826795d commit a9e6c10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion omop_file_validator.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def cast_type(cdm_column_type, value):
if cdm_column_type == 'float' and isinstance(value, float):
return value
if cdm_column_type == 'date' and isinstance(value, datetime.date):
return datetime.date(value)
return value
if cdm_column_type == 'timestamp' and isinstance(value, datetime.datetime): # do not do datetime.datetime
return value

Expand Down

0 comments on commit a9e6c10

Please sign in to comment.