diff --git a/src/api/src/backend/serializers/PipelineLockAcquisitionResponseSerializer.py b/src/api/src/backend/serializers/PipelineLockAcquisitionResponseSerializer.py index 7fe0516a..9fda6000 100644 --- a/src/api/src/backend/serializers/PipelineLockAcquisitionResponseSerializer.py +++ b/src/api/src/backend/serializers/PipelineLockAcquisitionResponseSerializer.py @@ -1,5 +1,4 @@ from backend.serializers import UUIDSerializer -from backend.conf.constants import DATETIME_FORMAT class PipelineLockAcquisitionResponseSerializer: diff --git a/src/api/src/backend/serializers/PipelineLockModelSerializer.py b/src/api/src/backend/serializers/PipelineLockModelSerializer.py index d24410d3..43d7f0e3 100644 --- a/src/api/src/backend/serializers/PipelineLockModelSerializer.py +++ b/src/api/src/backend/serializers/PipelineLockModelSerializer.py @@ -7,9 +7,11 @@ class PipelineLockModelSerializer: @staticmethod def serialize(model): + print(model) + print(dir(model)) + print(vars(model)) lock = model_to_dict(model) - from pprint import pprint - pprint(lock) + lock["uuid"] = UUIDSerializer.serialize(lock["uuid"]) lock["created_at"] = lock["created_at"].strftime(DATETIME_FORMAT)