Skip to content

Commit

Permalink
Debug
Browse files Browse the repository at this point in the history
  • Loading branch information
nathandf committed May 13, 2024
1 parent d8a37f2 commit 38914b5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
from backend.serializers import UUIDSerializer
from backend.conf.constants import DATETIME_FORMAT


class PipelineLockAcquisitionResponseSerializer:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 38914b5

Please sign in to comment.