Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nathandf committed May 13, 2024
1 parent 0058b0e commit 7dbf830
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/api/src/backend/serializers/PipelineLockModelSerializer.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ class PipelineLockModelSerializer:
@staticmethod
def serialize(model, pipeline):
lock = {}
lock["uuid"] = UUIDSerializer.serialize(lock.uuid)
lock["created_at"] = lock.created_at.strftime(DATETIME_FORMAT)
lock["expires_in"] = lock.expires_in
lock["uuid"] = UUIDSerializer.serialize(model.uuid)
lock["created_at"] = model.created_at.strftime(DATETIME_FORMAT)
lock["expires_in"] = model.expires_in

if lock.acquired_at != None:
lock["acquired_at"] = lock.acquired_at.strftime(DATETIME_FORMAT)
if model.acquired_at != None:
lock["acquired_at"] = model.acquired_at.strftime(DATETIME_FORMAT)

lock["pipeline_id"] = pipeline.id
lock["pipeline_run_uuid"] = UUIDSerializer.serialize(model.pipeline_run_id)
Expand Down

0 comments on commit 7dbf830

Please sign in to comment.