Fixes #383 - Timestamp on files is UTC?
also this includes the shield test thing for the boolean_type property whoopsie
This commit is contained in:
parent
9ca3fd4e12
commit
032aad9bc4
|
@ -66,6 +66,7 @@ class Task(object):
|
||||||
|
|
||||||
# Additional properties
|
# Additional properties
|
||||||
FIELD_PROP_ENUM_TYPE = "enum_type"
|
FIELD_PROP_ENUM_TYPE = "enum_type"
|
||||||
|
FIELD_PROP_BOOLEAN_TYPE = "boolean_type"
|
||||||
FIELD_PROP_TEXT_AREA_ROWS = "rows"
|
FIELD_PROP_TEXT_AREA_ROWS = "rows"
|
||||||
FIELD_PROP_TEXT_AREA_COLS = "cols"
|
FIELD_PROP_TEXT_AREA_COLS = "cols"
|
||||||
FIELD_PROP_TEXT_AREA_AUTO = "autosize"
|
FIELD_PROP_TEXT_AREA_AUTO = "autosize"
|
||||||
|
|
|
@ -175,7 +175,7 @@ class FileService(object):
|
||||||
user_uid = None
|
user_uid = None
|
||||||
new_file_data_model = FileDataModel(
|
new_file_data_model = FileDataModel(
|
||||||
data=binary_data, file_model_id=file_model.id, file_model=file_model,
|
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
|
size=size, user_uid=user_uid
|
||||||
)
|
)
|
||||||
session.add_all([file_model, new_file_data_model])
|
session.add_all([file_model, new_file_data_model])
|
||||||
|
|
Loading…
Reference in New Issue