Skip to content
This repository was archived by the owner on Mar 13, 2020. It is now read-only.

Commit c47a29c

Browse files
committed
fix entity-default python functions
1 parent 25a64e4 commit c47a29c

File tree

4 files changed

+4
-5
lines changed

4 files changed

+4
-5
lines changed

dpo/DataRepository.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,7 @@ def save_execution_step_models(self, execution_step_id, model_checksums):
8989
execution_step.status = Constants.StepStatus.IN_PROGRESS
9090

9191
for model_name, checksum in sorted(model_checksums.items()):
92-
execution_step_model = ExecutionStepModelEntity(execution_step_model_id=uuid.uuid4(),
93-
execution_step_id=execution_step_id,
92+
execution_step_model = ExecutionStepModelEntity(execution_step_id=execution_step_id,
9493
model_name=model_name,
9594
checksum=checksum)
9695
session.add(execution_step_model)

dpo/entities/execution_entity.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class ExecutionEntity(Shared.BaseEntity):
1616
execution_id = Column(PRIMARY_KEY_COL_NAME,
1717
UUID(as_uuid=True),
1818
primary_key=True,
19-
default=uuid.uuid4())
19+
default=uuid.uuid4)
2020

2121
created_on = Column('created_on',
2222
DateTime(timezone=True),

dpo/entities/execution_step_entity.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class ExecutionStepEntity(Shared.BaseEntity):
1818
execution_step_id = Column(PRIMARY_KEY_COL_NAME,
1919
UUID(as_uuid=True),
2020
primary_key=True,
21-
default=uuid.uuid4())
21+
default=uuid.uuid4)
2222

2323
created_on = Column('created_on',
2424
DateTime(timezone=True),

dpo/entities/execution_step_model_entity.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class ExecutionStepModelEntity(Shared.BaseEntity):
1818
execution_step_model_id = Column(PRIMARY_KEY_COL_NAME,
1919
UUID(as_uuid=True),
2020
primary_key=True,
21-
default=uuid.uuid4())
21+
default=uuid.uuid4)
2222

2323
created_on = Column('created_on',
2424
DateTime(timezone=True),

0 commit comments

Comments
 (0)