Skip to content
Snippets Groups Projects
Commit c0aadfa3 authored by Patricio Kumagae's avatar Patricio Kumagae
Browse files

Agrego hora y fecha a la respuesta del verify

parent 511f6821
No related branches found
No related tags found
No related merge requests found
...@@ -138,6 +138,7 @@ class Verify(APIView): ...@@ -138,6 +138,7 @@ class Verify(APIView):
return Response({_('status'): _('success'), 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'), _('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') % ( _('messages'): _('file_uploaded') % (
file_hash, str(block.number), str(Utils.datetime_from_timestamp(block.timestamp)))}, file_hash, str(block.number), str(Utils.datetime_from_timestamp(block.timestamp)))},
status=status.HTTP_200_OK) status=status.HTTP_200_OK)
...@@ -164,6 +165,7 @@ class Verify(APIView): ...@@ -164,6 +165,7 @@ class Verify(APIView):
return Response({_('status'): _('success'), 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'), _('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( _('messages'): _('file_uploaded') % (original_file_hash, str(block.number), str(
Utils.datetime_from_timestamp(block.timestamp)))}, status=status.HTTP_200_OK) Utils.datetime_from_timestamp(block.timestamp)))}, status=status.HTTP_200_OK)
else: else:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment