From c0e5808ec0964da7f98aa6a92593f62e43391db0 Mon Sep 17 00:00:00 2001 From: Kenio de Souza Date: Wed, 12 Nov 2025 16:30:11 -0300 Subject: [PATCH] =?UTF-8?q?fix():=20Ajuste=20na=20fun=C3=A7=C3=A3o=20que?= =?UTF-8?q?=20retorna=20o=20hash=20para=20visualiza=C3=A7=C3=A3o=20do=20ar?= =?UTF-8?q?quivo?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- actions/validations/hash.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/actions/validations/hash.py b/actions/validations/hash.py index 99a39dd..b35c312 100644 --- a/actions/validations/hash.py +++ b/actions/validations/hash.py @@ -26,8 +26,8 @@ def generate_storage_hash() -> str: # Atualiza o hash com o texto codificado em UTF-8 h.update(storage_date.encode("utf-8")) - # Retorna o hash em formato hexadecimal - return h.hexdigest() + # Retorna apenas os 12 primeiros caracteres do hash hexadecimal + return h.hexdigest()[:12] # Função que gera o token temporário para acesso ao documento