From 4ecf8c6d102fa02c92b5f6e6ff9fa300524c4ac1 Mon Sep 17 00:00:00 2001 From: Patricio Kumagae <pkumagae@boletinoficial.gov.ar> Date: Mon, 11 Feb 2019 14:52:05 -0300 Subject: [PATCH] Agrego fecha y hora a la respuesta del verify --- app/views.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/views.py b/app/views.py index da38b48..b5dec83 100644 --- a/app/views.py +++ b/app/views.py @@ -138,6 +138,7 @@ class Verify(APIView): return Response({_('status'): _('success'), _('permanent_rd'): base64.b64encode(Utils.get_permanent_ots(original_file_hash, ots_hash, tx_hash, block.number).encode('utf-8')).decode('utf-8'), + _('attestation_time'): str(Utils.datetime_from_timestamp(block.timestamp)), _('messages'): _('file_uploaded') % ( file_hash, str(block.number), str(Utils.datetime_from_timestamp(block.timestamp)))}, status=status.HTTP_200_OK) @@ -164,6 +165,7 @@ class Verify(APIView): return Response({_('status'): _('success'), _('permanent_rd'): base64.b64encode(Utils.get_permanent_ots(original_file_hash, ots_hash, tx_hash, block.number).encode('utf-8')).decode('utf-8'), + _('attestation_time'): str(Utils.datetime_from_timestamp(block.timestamp)), _('messages'): _('file_uploaded') % (original_file_hash, str(block.number), str( Utils.datetime_from_timestamp(block.timestamp)))}, status=status.HTTP_200_OK) else: -- GitLab