From 8aefc90ece29ec1f7d53caf90439e0fce3bb05bb Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Thu, 28 Nov 2024 20:21:21 +0100 Subject: [PATCH] more debug --- dpp/views.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/dpp/views.py b/dpp/views.py index fe0d6ed..e8c2c18 100644 --- a/dpp/views.py +++ b/dpp/views.py @@ -16,12 +16,12 @@ class ProofView(View): def get(self, request, *args, **kwargs): timestamp = kwargs.get("proof_id") - for p in Proof.objects.filter(): - logger.error(p.timestamp) - proof = Proof.objects.filter(timestamp=timestamp).first() if not proof: return JsonResponse({}, status=404) + + logger.error(proof.type) + logger.error(proof.signature) ev = Evidence(proof.uuid) if not ev.doc: @@ -30,6 +30,8 @@ class ProofView(View): dev = Build(ev.doc, None, check=True) doc = dev.get_phid() + logger.error(doc) + data = { "algorithm": ALGORITHM, "document": json.dumps(doc)