diff --git a/crc/models/api_models.py b/crc/models/api_models.py index 90b56136..6889e3a1 100644 --- a/crc/models/api_models.py +++ b/crc/models/api_models.py @@ -66,6 +66,7 @@ class Task(object): # Additional properties FIELD_PROP_ENUM_TYPE = "enum_type" + FIELD_PROP_BOOLEAN_TYPE = "boolean_type" FIELD_PROP_TEXT_AREA_ROWS = "rows" FIELD_PROP_TEXT_AREA_COLS = "cols" FIELD_PROP_TEXT_AREA_AUTO = "autosize" diff --git a/crc/services/file_service.py b/crc/services/file_service.py index 38a876b5..d89ae011 100644 --- a/crc/services/file_service.py +++ b/crc/services/file_service.py @@ -175,7 +175,7 @@ class FileService(object): user_uid = None new_file_data_model = FileDataModel( data=binary_data, file_model_id=file_model.id, file_model=file_model, - version=version, md5_hash=md5_checksum, date_created=datetime.utcnow(), + version=version, md5_hash=md5_checksum, size=size, user_uid=user_uid ) session.add_all([file_model, new_file_data_model])