diff --git a/app/views.py b/app/views.py index da38b48b854f7a4cab3bd8e6922d1de1063d42ec..b5dec83d8ac4f57b924ca01e827b8a0104f56d94 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: